Annotated WS in JBoss
I am trying to see the compatibly of different jee6 servers.
With this occasion I did a very basic WS app
http://uploading.com/files/786a932f/HelloWorldWs.war/
It is the most simple one :)
@WebService(serviceName = "HelloWorldWs")
public class HelloWorldWs {
/** This is a sample web service operation */
@WebMethod(operationName = "hello")
public String hello(@WebParam(name = "name") String txt) {
return "Hello " + txt + " !";
}
}
It works very nice on Glassfish 3.1
http://localhost:8080/HelloWorldWs/HelloWorldWs?wsdl
return the wsdl
but when i try on latest JBoss 7 CR that link is not working anymore despite the war is deployed and http://localhost:8080/HelloWorldWs works.
My qusti开发者_StackOverflow社区on is: is something wrong in what i do or JBoss is not yet ready for WS yet in this light form by using only annotations ?
Thank you !
I had a similar issue (JBWS-3276) in JBoss AS 6 (discussion here).
You may have to add an entry to your web.xml as described in the JBoss 6 documentation.
If you find new issues I recommend you report them - though refer to the specs and not the Glassfish implementation for the final word on expected behaviour. The web services API is maintained at jboss.org/jbossws so it would be best to track these releases for JAX-WS support.
精彩评论