But then I had a question, a basic if I am marking a method as @WebService and have multiple methods defined in it, how do I send request to different methods in this @WebService? Ok, the endpoint address that is defined is for the entire class, and as long as the class has the methods marked as WebMethods, with the exclude attribute absent it can be accessed as a normal class method in the client.
If you annotate an endpoint implementation class with @WebService, then operations will be generated for all the public methods that are not annotated with a @WebMethod annotation which has the exclude attribute set to true.
This can be tested in a very siple manner: Develop an endpoint implementation class that is annotated with @WebService and add some methods in it. Deploy the project to, for instance, GlassFish and then examine the generated WSDL. Annotate one or more methods with @WebMethod(exclude=true) and deploy again etc.
subject: Difference between @WebService and @WebServiceProvider