java-source (you need jboss-jaxws.jar to compile it) | package ws.test; /* you can use any package */ | | 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> | <servlet-name>Test</servlet-name> | <servlet-class>ws.test.Test</servlet-class> | </servlet> | | <servlet-mapping> | <servlet-name>Test</servlet-name> | <url-pattern>/*</url-pattern> | </servlet-mapping> | | </web-app> | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096480#4096480 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096480 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user