Exploring the SoapEnvelope Class in WSE2.0 - Exploring Properties and Methods
(Page 3 of 5 )
General
It is assumed that Visual Studio 2003 is installed. It is also assumed that WSE2.0 has been installed. If not, it can be installed from the Microsoft web site. Search for Microsoft WSE 2.0 SP2.msi (8.8Mb). Once installed in the Visual Studio IDE you should be able to see the related dll in the .NET reference.
Web Service Project
Create a new web service project (WSE2_1), and remove the default Service1.asmx file. Insert a web service file. In this tutorial it is named Props.asmx.

Since we are going to look at properties and methods of the WSE2.0, you need to add a reference to WSE2.0. Right click the solution[WSE2_1] and click on Add Reference.... This will bring up the following screen as shown. This will add references to the Microsoft.Web.Services2.dll and all the properties and methods will be available at design time. These are also available via intellisense.

In the Visual Studio IDE, click on the menu item View and from the drop down click on Object Browser. This will bring out all the objects. The next figure shows the namespaces related to WSE2.0. We will be looking at one of the classes highlighted.

Visual Studio 2003 provides a default HelloWorld() WebMethod which has been removed. First of all the Microsoft.Web.Services2 should be imported to the web service as shown in the imports.
Next: LoadXML and InnerText Properties >>
More Windows Scripting Articles
More By Jayaram Krishnaswamy