About Question com.enthuware.ets.scbcd.v5.2.47 :

Moderator: admin

Post Reply
ETS User

About Question com.enthuware.ets.scbcd.v5.2.47 :

Post by ETS User »

Hello,

Since exclude attribute in WebMethod annotation defaults to false then any method that are not annotated with WebMethod should be exposed as a web service. In the question it requires only getRate method be exposed as a web service so the correct answer should be like getRate need not have an annotation and the other two methods should have a WebMethod(exclude=true) annotation.

Image

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question com.enthuware.ets.scbcd.v5.2.47 :

Post by admin »

As per WS Meta Data Specification Section 3.1, "If a WebMethod annotation is present, only the methods to which it is applied are exposed." Therefore, the methods on which there is no annotation will not be exposed because @WebMethod is present for some methods and so the given answer is correct.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests