Page 1 of 1

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

Posted: Mon Dec 13, 2010 6:11 am
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

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

Posted: Sun Dec 19, 2010 12:23 pm
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.