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.
