I am trying to develop a sample web service using JBOSS. When i searched in Google, i could see that webservices in JBOSS could be developed using AXIS, JBOSSWS and WS4EE. What are all these exactly? How do we determine which one we should use for our purpose? Please throw some light on this... I have used weblogic before and we are migrating to JBOSS now. I am still unable to develop a helloworld web service using JBOSS.
To be able to compile your WS code, you need to add the right JBoss WS jar files to the compile classpath. Because your hello world code does not contain any JBoss specific WS code, I just used my normal 'javaee.jar' (GlassFish implementation) as the only one in the classpath - beside the JDK.
Your HelloWorld code did not work as it was (could not deploy), but I did not get any compiler errors.
I needed to add then "@Stateless" annotation to the HelloWorldWS - then the webservice could deploy on a JBoss v2.4.1.
And it gave me this WSDL:
[ April 17, 2008: Message edited by: Rene Larsen ]
Thanks Larsen... I still could not resolve the annotation issue. However i could develop a sample web service without using annotation. I tried writing a sample client program to invoke the web service. This was done using HttpURLConnection. But this gives the following error in the server.
I could not guess what exactly is going wrong? A snippet of my sample client program
Please guide me. In weblogic, i was able to send my xml using this program. But in JBOSS, it is giving me this error.