Loading ...
Sorry, an error occurred while loading the content.

Parse soap request

Expand Messages
  • tilmant_a
    Hello, My server receive a request and I would like to parse it. I know how to retrieve the value of an header or a data. I use dataof and headerof . But
    Message 1 of 1 , Apr 24 1:15 AM
    • 0 Attachment

      Hello,

      My server receive a request and I would like to parse it.
      I know how to retrieve the value of an header or a data. I use "dataof" and "headerof".

      But how I retrieve all the elements of the request without knowing what are in the request
      For example, if my request is


      <?xml version="1.0" encoding="UTF-8"?>
      <env:Envelope xmlns:env="
      http://www.w3.org/2003/05/soap-envelope"
        xmlns:wsa="
      http://schemas.xmlsoap.org/ws/2004/08/addressing"
        xmlns:wse="
      http://schemas.xmlsoap.org/ws/2004/08/eventing"
        xmlns:wsen="
      http://schemas.xmlsoap.org/ws/2004/09/enumeration"
        xmlns:wsman="
      http://schemas.xmlsoap.org/ws/2005/06/management"
        xmlns:wsmancat="
      http://schemas.xmlsoap.org/ws/2005/06/wsmancat"
        xmlns:wxf="
      http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <env:Header>
          <wsa:Action env:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</wsa:Action>
          <wsa:ReplyTo>
            <wsa:Address env:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
          </wsa:ReplyTo>
          <wsa:MessageID env:mustUnderstand="true">uuid:bebff702-0e8d-4705-8793-7dc39efecf0c</wsa:MessageID>
          <wsa:To env:mustUnderstand="true">http://localhost:80/wsman/</wsa:To>
          <wsman:ResourceURI>wsman:test/eventing</wsman:ResourceURI>
        </env:Header>
        <env:Body>
          <wse:Subscribe>
            <wse:Delivery Mode="
      http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/Push">
              <wse:NotifyTo>
                <wsa:Address env:mustUnderstand="true">http://localhost:8080/events</wsa:Address>
              </wse:NotifyTo>
            </wse:Delivery>
            <wse:Expires>PT5M0.000S</wse:Expires>
          </wse:Subscribe>
        </env:Body>
      </env:Envelope

      How I can know that the headers is wsa:Action, wsa:ReplyTo .... and what are theirs values.

      Moreover my soap request has more namespaces than usually. How I can retrieve all the namespaces.

      Thanks,

      Amelie

    Your message has been successfully submitted and would be delivered to recipients shortly.