开发者

can we expose two methods in same class java as a web service using jax-ws with Eclipse?

开发者 https://www.devze.com 2023-04-11 10:17 出处:网络
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 开发者_开发技巧expos

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

精彩评论

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

关注公众号