1 Reply Latest reply: May 22, 2012 3:38 AM by gimbal2 RSS

    JAX-WS how do I trigger a method from browser to test it?

    361137
      I deployed a webservice as follows:

      @WebService
      public class TestWebServiceImpl implements TestWebService {

           @Override
           @WebResult(name = "DoTest")
           public void doTest() {
                
                System.out.println("DoTest triggered");
           }

      }

      ----------------------------------

      <endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime" version="2.0" Content-type="text/xml">
      <endpoint
      name="TestService"
      implementation="com.test.webservice.impl.TestWebServiceImpl"
      url-pattern="/dotest"
      />
      </endpoints>

      ----------------------------------

      <servlet>
      <servlet-name>TestService</servlet-name>
      <servlet-class>
           com.sun.xml.ws.transport.http.servlet.WSServlet
      </servlet-class>
      <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
      <servlet-name>TestService</servlet-name>
      <url-pattern>/dotest</url-pattern>
      </servlet-mapping>
      <session-config>
      <session-timeout>120</session-timeout>
      </session-config>


      No I can trigger the wsdl by hitting:
      http://localhost:9001/test/dotest

      but how do I directly trigger the method "doTest" so I see that system out generated?