I've read the following documentation:
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
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.
HTTP GET cannot deliver a valid SOAP payload, because it does not have a payload. All information in in the URL. Use HTTP POST