Sams Teach Yourself ASP.NET in 21 Days, Second Edition By Chris Payne
Table of Contents
Day 17. Consuming and Securing XML Web Services
Will non-Web method functions be seen in the proxy class as well?
No, the proxy only sees the methods that contain the <WebMethod()> attribute. Recall that methods without this attribute cannot be seen at all over the Web.
Can SOAP headers be used for functions other than security?
Absolutely! SOAP headers can contain any custom information you want. Any Web method that uses the <SoapHeader()> attribute will require the header to be sent along with any communication. Thus, this is a convenient way to send information that doesn't necessarily belong in the parameter list of a method.