开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜