C:\>
Here's a description of how to upgrade old add-in projects from Visual Studio 2003 to 2005:
SoapHeaders can be used to send "extra" and optional parameters to web service methods and is a technique which can be extremely useful. See the following example:
Server-side (MyService.asmx):
[WebMethod]
[SoapHeader("myheader")]
public string HelloWorld()
{
if (myheader != null && myheader.AddDate == true)
return "Hello World " + DateTime.Now.ToString();
else
return "Hello World";
}
Client-side:
Furthermore, these headers can be accessed in SoapExtension components. For example, there might be a SoapHeader that controls the transport of data.
Example:
Sometimes it's useful to have the header sent in both directions (both to and from the service). In this case, apply the attribute to the web method with the Direction attribute:
[powered by WordPress.]
jour·nal n. A personal record of occurrences, experiences, and reflections kept on a regular basis; a diary.
36 queries. 0.376 seconds