can we expose two methods in same class java as a web service using jax-ws with Eclipse?
I am using myEclipse to develop jax-ws web services. Is it possible to expose two methods from the same class as one web service? if yes how this will affect the WSDL? Or I have to 开发者_开发技巧expose one web service, I mean one wsdl for each method?
Many Thanks.
I am not sure how MyEclipse is relevant here.
Yes, you can certainly have more than one method annotated with @WebMethod in a webservice (a class annotated with @WebService).
Yes your WSDL will change to account for the new method you added.
UPDATE You asked for examples of a WSDL with multiple soap operations. Here is one.
精彩评论