save up to 40%

What are the elements of SOAP messages?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What are the elements of SOAP messages?

Rating:

SOAP messages contains the following three elements:

  1. Envelope: This element is the root level element and it is used to define the XML document as a SOAP message. It contains both the Header and Body elements.

    <?xml version="1.0"?>
    <soap:Envelope xmlns:soap="soap-envelope" soap:encodingStyle="soap-encoding">
    Message information goes here
    </soap:Envelope>

  2. Header: This element is the optional SOAP element containing header information. It is defined under the Envelope element and before the Body element.

    <?xml version="1.0"?>
    <soap:Envelope xmlns:soap="soap-envelope" soap:encodingStyle="soap-encoding">
    <soap:Header>
    <m:Trans xmlns:m="transaction/" soap:mustUnderstand="1">234</m:Trans>
    </soap:Header>
    </soap:Envelope>

  3. Body: This is the compulsory SOAP element that contains the actual SOAP message. It is the location where all the data is stored.

    <?xml version="1.0"?>
    <soap:Envelope xmlns:soap="soap-envelope" soap:encodingStyle="soap-encoding">
    <soap:Body>
    <m:GetPrice xmlns:m="prices">
    <m:Item>Apples</m:Item>
    </m:GetPrice>
    </soap:Body>
    </soap:Envelope>


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.