Windows Scripting
  Home arrow Windows Scripting arrow Exploring the SoapEnvelope Class in WSE2.0
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

Exploring the SoapEnvelope Class in WSE2.0
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2007-01-08

    Table of Contents:
  • Exploring the SoapEnvelope Class in WSE2.0
  • SoapEnvelope Methods
  • Exploring Properties and Methods
  • LoadXML and InnerText Properties
  • Body Property and SetBodyObject() method

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Exploring the SoapEnvelope Class in WSE2.0


    (Page 1 of 5 )

    This article, the first of two parts, will explore the SoapEnvelope class in WSE2.0 by examining some of its properties and methods. The namespace to which this class belongs has a large number of classes and each of them have a large number of properties and methods; that includes the inherited ones. We will only highlight a few of them here.

    WSE2.0 provides the class libraries that add the power to the .NET Class libraries in extending the web services capabilities to the existing web services architecture. Soap messaging in WSE2.0 is a key to many enhanced capabilities that provides support for communication using protocols other than HTTP. This amounts to not needing even a web server when the TCP protocol is used. The request/response model of HTTP is really not needed when sending messages, especially when no messages are expected to be returned. However, messaging by HTTP is also supported.

    The SOAP is well known as an extremely lightweight protocol requiring fewer resources from the sender or recipient of a communication. Since it is XML based, any system capable of parsing XML should be capable of communicating by using this protocol. The basic unit of communication in SOAP is a SOAP Message. WSE2.0 provides a large number of classes in the Microsoft.Web.Services2 name space that makes the communication possible with flexible lightweight web services. A partial list of related classes in this name space is the following:

    Soap 
    Soap.AttributeName
    Soap.ElementNames
    SoapContext
    SoapEnvelope
    SoapFault
    SoapFormatException
    SoapInputFilter
    SoapInputFilterCollection
    SoapOutputFilter
    SoapOutputFilterCollection
    SoapWebRequest 
    SoapWebResponse 
    

    Soap Message

    A SOAP message consists of a Header, a Body and any other independent elements housed in what is called a SOAP Envelope.  A SOAP message is an XML document that imposes the existence of a single root element. The Soap envelope is the top element, or the root element of the Soap message. Following the Soap envelope root element is the Soap Header which is optional; the Soap Body, which is required, follows next. This is the minimum requirement for the SOAP Message. An XML document such as the one shown in the following paragraph would represent an empty Soap Message.

    <Soap_env:envelope>
    <Soap_env:Header/>
    <Soap_env:Body/>
    </Soap_env:envelope>
    

    Soap Envelope

    This article looks at the properties and methods exposed by the SoapEnvelope class, with special reference to WSE2.0, that can be used in building web services. The public events are all inherited from XMLDocument and will not be discussed here. Some of the properties and methods pertinent to WSE2.0 will be explored by building web services and testing them.

    The SoapEnvelope class comprises:


    More Windows Scripting Articles
    More By Jayaram Krishnaswamy


       · Web Services Extensions which has had 3 avatars aims at achieving the goal of...
     

    WINDOWS SCRIPTING ARTICLES

    - More Windows Scripting Workarounds from Nilpo
    - Overloading Methods and More in VBScript
    - Improving MFC for Windows Vista
    - Regular Expressions in VBScript
    - Working with Dates in WMI
    - Completing Calendars with VBScript Date Func...
    - Building Calendars with VBScript Date Functi...
    - Working With Dates and Times in VBScript
    - Designing WCF DataContract Classes Using the...
    - Understanding Dates and Times in VBScript
    - Working With Arrays in VBScript
    - Compressed Folders in WSH
    - Using .NET Interops in VBScript
    - Nilpo`s Scripting Secrets, Vol I
    - Database operations using Silverlight 2.0 WC...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek