Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8330581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:09:57+00:00 2026-06-09T02:09:57+00:00

i need to parse this response of soapserver: <?xml version=1.0 encoding=UTF-8?><SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema

  • 0

i need to parse this response of soapserver:

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
 <SOAP-ENV:Header>
  <wsa:MessageID SOAP-ENV:mustUnderstand="0">uuid:5f7271f0-de19-11e1-8035-e656d1754971</wsa:MessageID>
  <wsa:To SOAP-ENV:mustUnderstand="0">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
 </SOAP-ENV:Header>
 <SOAP-ENV:Body>
  <ns1:wssigatewayResponse xmlns:ns1="urn:it-progress-operate:ws_operate">
   <ns1:result xsi:nil="true"/>
   <ttOut xmlns="urn:it-progress-operate:ws_operate">
    <ttOutRow xmlns="urn:it-progress-operate:ws_operate">
     <ParPos xmlns="urn:it-progress-operate:ws_operate">0</ParPos>
     <ParNam xmlns="urn:it-progress-operate:ws_operate">ContentType</ParNam>
     <ParVal xmlns="urn:it-progress-operate:ws_operate">text/xml</ParVal>
    </ttOutRow>
    <ttOutRow xmlns="urn:it-progress-operate:ws_operate">
     <ParPos xmlns="urn:it-progress-operate:ws_operate">1</ParPos>
     <ParNam xmlns="urn:it-progress-operate:ws_operate">Result</ParNam>
     <ParVal xmlns="urn:it-progress-operate:ws_operate">200</ParVal>
    </ttOutRow>
    <ttOutRow xmlns="urn:it-progress-operate:ws_operate">
     <ParPos xmlns="urn:it-progress-operate:ws_operate">2</ParPos>
     <ParNam xmlns="urn:it-progress-operate:ws_operate">XMLDocumentOut</ParNam>
     <ParVal xmlns="urn:it-progress-operate:ws_operate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
&lt;DtsAgencyLoginResponse xmlns=&quot;DTS&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;DTS file:///R:/xsd/DtsAgencyLoginMessage_01.xsd&quot;&gt;&lt;SessionInfo&gt;&lt;SessionID&gt;178918&lt;/SessionID&gt;&lt;Profile&gt;A&lt;/Profile&gt;&lt;Language&gt;ENG&lt;/Language&gt;&lt;Version&gt;1&lt;/Version&gt;&lt;/SessionInfo&gt;&lt;AdvisoryInfo/&gt;&lt;/DtsAgencyLoginResponse&gt;</ParVal>
    </ttOutRow>
   </ttOut>
   <ns1:opcErrorMessage/>
  </ns1:wssigatewayResponse>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

How can i get SessionID from ParVal in the last ttOutRow?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:09:58+00:00Added an answer on June 9, 2026 at 2:09 am

    Load the SOAP response into an DOMDocument object:

    $soapDoc = new DOMDocument();
    $soapDoc->loadXML($soapResponse);
    

    Prepare a DOMXPath object for that document:

    $xpath = new DOMXPath($soapDoc);
    

    Register a prefix for the urn:it-progress-operate:ws_operate namespace:

    $xpath->registerNamespace('operate', 'urn:it-progress-operate:ws_operate');
    

    Retrieve the payload node:

    $path = "//operate:ttOutRow[operate:ParNam='XMLDocumentOut']/operate:ParVal";
    $result = $xpath->query($path);
    

    Save the payload XML:

    $payloadXML = $result->item(0)->nodeValue;
    

    Now that you have the payload XML string, go through the process again:

    • Load it into a DOMDocument
    • Prepare a DOMXpath object
    • Register the DTS namespace
    • Use XPath to retrieve the value

    It’s probably best to wrap the whole process into a function so you can re-use it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need to parse this php xml response in android: <?phpxml version=1.0 encoding=utf-8?> <SmsResponse>
i need to get this url (http://localhost:8983/solr/select/?q=treen&omitHeader=true) and get the response as xml, and
I need to parse a response from a server like this: risposta: 200\n Len
I have this JSON http://www.progmic.com/ielts/retrive.php that I need to parse. When I do it
Here is a simplified version of the XML returned. <?xml version=1.0 encoding=UTF-8 ?> <kml
I need to parse the server response from my http post & puts. I
I'm receiving the below xml response and I need to parse so that all
I need to parse this json and get the itemvotecounts, and firstrankvotescounts. [ [
I have string as abvd.qweqw.sdfs.a=aqwrwewrwerrew . I need to parse this string and get
8,5,,1,4,7,,,,7,,1,9,3,6,,,8,6,3,9,,2,5,4,,,,,3,2,,,7,4,1,1,,4,,6,9,,5,,,,5,,,1,,6,3,,,6,5,,,,7,4,,1,7,6,,,,8,,5,,,7,1,,3,9, I'm doing a programming challenge where i need to parse this sequence into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.