Sams Teach Yourself ASP.NET in 21 Days, Second Edition By Chris Payne
Table of Contents
Day 17. Consuming and Securing XML Web Services
Q&A
Q1:
Will non-Web method functions be seen in the proxy class as well?
A1:
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.
Q2:
Can SOAP headers be used for functions other than security?
A2:
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.