Web Service - include a message header?

Discussion in 'ASP .Net' started by Spam Catcher, Jan 31, 2008.

  1. Spam Catcher

    Spam Catcher Guest

    Hi all,

    I have a customer who plans to include additional data in the SOAP body:

    <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>

    The incoming request will have additional XML blocks inside the body,
    how would I go about parsing the XML?


    Thanks.


    --
    (Do not e-mail)
     
    Spam Catcher, Jan 31, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Aguilar, James
    Replies:
    2
    Views:
    691
    Aguilar, James
    Jul 16, 2004
  2. Andreas Bogenberger
    Replies:
    3
    Views:
    940
    Andreas Bogenberger
    Feb 22, 2008
  3. mlt
    Replies:
    2
    Views:
    854
    Jean-Marc Bourguet
    Jan 31, 2009
  4. Curt K
    Replies:
    3
    Views:
    462
    John Saunders [MVP]
    Jun 15, 2007
  5. Ted Byers
    Replies:
    0
    Views:
    280
    Ted Byers
    Jun 24, 2010
Loading...

Share This Page