See more articles about "web service "

Tutorial Addendum on Web Account and SOAP - SOAP Bulletin Anatomy



 31 December 18:00   

    



    



    

This affiliate describes:

    



        

  • Generic SOAP bulletin structure.

        



  •     

  • SOAP accountability bulletin structure.

        



  •     



    



    



    

SOAP Bulletin Structure

    



    

A SOAP bulletin is an XML certificate with "Envelope" as the basis aspect with the afterward structure:

    



    

 

    

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">

    

<env:Header>

    

...

    

</env:Header>

    

<env:Body>

    

...

    

</env:Body>

    

</env:Envelope>

    



    



    

where "Header" is an alternative adolescent element, and "Body" is a appropriate adolescent element.

    



    



    

A "Header" aspect may accommodate aught or added "Header Block" elements with the afterward structure:

    

 

    

<env:Header>

    

<hb0:headBlock0 xmlns:hb0="Uri0">

    

...

    

</hb0:headBlock0>

    

...

    

<hbN:headBlockN xmlns:hbN="UriN">

    

...

    

</hbN:headBlockN>

    

</env:Header>

    



    



    

A "Header Block" aspect haveto accept a name space. It may accommodate argument advice and any amount of adolescent elements.

    

It may aswell accommodate any amount of attributes including SOAP predefined attributes. A "Header Block" has the following

    

structure:

    

 

    

<hb:headBlock xmlns:hb="Uri">

    

<hb:child0 encodingStyle="..." role="..." mustUnderstand="..."

    

relay="..." ...>

    

...

    

</hb:child0>

    

...

    

(text)

    

...

    

<hb:childN encodingStyle="..." role="..." mustUnderstand="..."

    

relay="..." ...>

    

...

    

</hb:childN>

    

</hb:headBlock>

    



    



    

"encodingStyle", "role", "mustUnderstand" and "relay" are SOAP predefined attributes. We will altercate them later.

    



    

A "Body" aspect has about no restrictions. It may accept argument information, any amount of attributes and any amount of adolescent

    

elements, with the afterward structure:

    

 

    

<env:Body ...>

    

<bodyChild0 ...>

    

...

    

</bodyChild0 ...>

    

...

    

(text)

    

...

    

<bodyChildN ...>

    

...

    

</bodyChildN ...>

    

</env:Body>

    



    



    

To accord an abstraction of how a SOAP bulletin looks like, I accept affected the archetype #1 from the SOAP 1.2 blueprint here:

    

 

    

<?xml version="1.0"?>

    

<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">

    

<env:Header>

    

<m:reservation xmlns:m="http://travel.example.org/reservation"

    

env:role="http://www.w3.org/2003/05/soap-envelope/role/next"

    

env:mustUnderstand="true">

    

<m:reference>uuid:093a2da1-q345-73pqff98fe8j7d</m:reference>

    

<m:dateAndTime>2001-11-29T13:20:00.000-05:00</m:dateAndTime>

    

</m:reservation>

    

<n:passenger xmlns:n="http://mycompany.example.com/employees"

    

env:role="http://www.w3.org/2003/05/soap-envelope/role/next"

    

env:mustUnderstand="true">

    

<n:name> Yang</n:name>

    

</n:passenger>

    

</env:Header>

    

<env:Body>

    

<p:itinerary

    

xmlns:p="http://travelcompany.example.org/reservation/travel">

    

<p:departure>

    

<p:departing>New York</p:departing>

    

<p:arriving>Los Angeles</p:arriving>

    

<p:departureDate>2001-12-14</p:departureDate>

    

<p:departureTime>late afternoon</p:departureTime>

    

<p:seatPreference>aisle</p:seatPreference>

    

</p:departure>

    

<p:return>

    

<p:departing>Los Angeles</p:departing>

    

<p:arriving>New York</p:arriving>

    

<p:departureDate>2001-12-20</p:departureDate>

    

<p:departureTime>mid-morning</p:departureTime>

    

<p:seatPreference/>

    

</p:return>

    

</p:itinerary>

    

<q:lodging

    

xmlns:q="http://travelcompany.example.org/reservation/hotels">

    

<q:preference>none</q:preference>

    

</q:lodging>

    

</env:Body>

    

</env:Envelope>

    



    



 


 header, xmlns, envelope, message, structure, element, reservation, mustunderstand, example, departuretime, departuredate, arriving, departing, attributes, child, following, seatpreference, block, encodingstyle, elements, relay, , < env, env header, env body, soap message, header <, org 2003, soap envelope, http www, message structure, env envelope, example org, org reservation, role mustunderstand, header block, following structure, structure <, encodingstyle role, soap message structure, encodingstyle role mustunderstand, soap envelope role, envelope role next, env mustunderstand true, http travelcompany example, env role http, role mustunderstand relay, env envelope xmlns, soap predefined attributes, soap soap message, message structure soap,

Share Tutorial Addendum on Web Account and SOAP - SOAP Bulletin Anatomy:
Digg it!   Google Bookmarks   Del.icio.us   Yahoo! MyWeb   Furl  Binklist   Reddit!   Stumble Upon   Technorati   Windows Live   Bookmark

Text link code :
Hyper link code:

Also see ...

Tutorial Addendum on Web Account and SOAP - SOAP Bulletin Anatomy
SOAP Accountability MessageA SOAP accountability bulletin is a appropriate SOAP bulletin acclimated to backpack absurdity information. It haveto accept alone one physique adolescent aspect alleged "Fault

Tutorial Addendum on Web Account and SOAP - SOAP Perl Implementations
This affiliate describes:Available Perl implemations of SOAP.SOAP::Lite for Perl on Windows.Installing ActivePerl v5.8.7 on Windows.SOAP::Lite 0.55 in Active

Tutorial Addendum on Web Account and SOAP - SOAP Perl Implementations
SOAP::Lite 0.55 in ActivePerl 5.8.7Now, let s analysis afresh the SOAP::Lite amalgamation in ActivePerl v5.8.7: dir perlsitelibSOAP...12/08/2003 09:13 AM

Tutorial Addendum on Web Account and SOAP - SOAP RPC Presentation
This affiliate describes:What is SOAP RPC Presentation?When and how to use Web methods to adjure RPC?How to use SOAP letters to adjure RPC?Some examples of R

Tutorial Addendum on Web Account and SOAP - SOAP RPC Presentation
Using SOAP Letters to Adjure RPCInvocation of added complicated limited procedures requires SOAP messages. Actuality is an example.Example 3 A user wants to amend prices