SOAP

SOAP Messages

Envelope picture
<?xml version='1.0' ?>
<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope"
  env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding"> 
  <env:Header>
    <m:reservation xmlns:m="http://example.org/reservation" 
      env:actor="http://www.w3.org/2001/12/soap-envelope/actor/next"
      env:mustUnderstand="true">
      <m:reference>uuid:093a2da1-q345-739r-ba5d-pqff98fe8j7d</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:actor="http://www.w3.org/2001/12/soap-envelope/actor/next"
        env:mustUnderstand="true">
        <n:name>John Q. Public</n:name>
      </n:passenger>
  </env:Header>
  <env:Body>
    <p:itinerary xmlns:p="http://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://example.org/reservation/hotels">
        <q:preference>none</q:preference>
      </q:lodging>
  </env:Body>
</env:Envelope>


José M. Vidal .

6 of 29