Specifies whether this method is a web method. Applies only in a class that is defined as a web service or web client.
To specify that this method is a web method, use the following syntax:
Method name(formal_spec) As returnclass [ WebMethod ]
Otherwise, omit this keyword or place the word Not
immediately before the keyword.
This keyword specifies that this method is available as a web method and can be invoked via the SOAP protocol.
If you omit this keyword, the method is not available as a web method.
Do not modify or directly use this generated class; it is intended only for internal use.
Relationship to WSDL
For a web service, this keyword also affects the generated WSDL, which now contains the additional elements needed to represent this web method.