[jboss-user] [JBossWS] - Re: Jbossws Tutorial.

zeeshan.javeed do-not-reply at jboss.com
Thu Oct 18 08:59:33 EDT 2007


Hi, 
NOw let me repeat what I have done

Test.Java
__

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

@WebService
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class Test {

	@WebMethod
	public String echo(String param) {
		return param;
	}

}
	
__
web.xml
__
<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.5"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

   
    <servlet-name>FirstTest</servlet-name>
    <servlet-class>Test</servlet-class>
  
  
  <servlet-mapping>
    <servlet-name>FirstTest</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>
    
</web-app>
	
__

and when I make a war file of this and put in deploy directory of Jboos, I got on console ..

14:54:01,371 INFO  [TomcatDeployer] deploy, ctxPath=/FirstTest, warUrl=.../tmp/deploy/tmp64909FirstTest-exp.war/

Now When I try to go to this url.
http://localhost/FirstTest?wsdl
it simply comes up with 'Directory Listing For'

I think I am still missing something. Are not we suppose to make WSDL file first using some tool. If yes, can you please explain that as well? 

Regards.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096528#4096528

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096528



More information about the jboss-user mailing list