1 Reply Latest reply on Nov 9, 2006 7:16 PM by Thomas Diesler

    Trouble accessing a simple webservice

    First Last Newbie


      I've read the following documentation:
      http://docs.jboss.org/jbossas/getting_started/v5/html/ws.html and

      And (apparently) sucessfully deployed a simple webservice. Not quite successfully, though, since while JBoss tells me the webservice is deployed:

      14:53:40,734 INFO [TomcatDeployer] deploy, ctxPath=/bqx, warUrl=.../tmp/deploy/tmp26274bqx-exp.war/
      14:53:40,993 INFO [WSDLFilePublisher] WSDL published to: file:/Users/luis/Software/jboss-4.0.4.GA/server/default/data/wsdl/bqx.war/BQXWS26275.wsdl
      14:53:41,030 INFO [ServiceEndpointManager] WebService started: http://pomajxego:8080/bqx/BQXWS

      ... I can't seem to access it:

      14:55:23,874 ERROR [[BQXWS]] Servlet.service() for servlet BQXWS threw exception
      org.jboss.util.NotImplementedException: HTTP GET not supported
      at org.jboss.ws.server.ServiceEndpointServlet.doGet(ServiceEndpointServlet.java:95)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

      I've pasted the code for the WS and the client here:

      I'm guessing that the annotation magic should be generating a doGet method but for some reason isn't. Any idea what I'm doing wrong? Any help will be appreciated!

      (BTW, as you'll see in that code, my webmethod is returning XML data in a String. I have the feeling that there must be a better way, tips regarding that will be welcome too!)

      Thanks in advance.