NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How to get a single element from a soap call


Joined: 14 Apr 2019
Posts: 2
Reply with quote
I am creating a NuSoap server to accept the following XML Client Request and respond:
Code:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <ns1:syncR xmlns:ns1="http://www.csapi.org/schema/parlayx/data/sync/v1_0/local">
      <ns1:updateType>1</ns1:updateType>
      <ns1:updateDesc>Addition</ns1:updateDesc>
        <item>
          <key>shortMessage</key>
          <value>Hello world.</value>
        </item>
    </ns1:syncR>
  </soapenv:Body>
</soapenv:Envelope>


I am creating a NuSoap server to accept the following XML Client Request and respond:


Last edited by asteway on Wed Apr 17, 2019 12:44 pm; edited 1 time in total
View user's profileFind all posts by astewaySend private message


Joined: 14 Apr 2019
Posts: 2
Reply with quote
Anyone?
I just need to know how to parse xml tags of nature <ns1:xxx

like
<ns1:updateType>1</ns1:updateType>
<ns1:updateTime>20130723082551</ns1:updateTime>
<ns1:updateDesc>Addition</ns1:updateDesc>
<ns1:effectiveTime>20130723082551</ns1:effectiveTime>

My server is able to parse this request for example:
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <SOAP-ENV:Body>
        <ns1972:syncOrderRelation xmlns:ns1972="http://www.csapi.org/wsdl/parlayx/data/sync/v1_0/">
            <updateType xsi:type="xsd:string">1</updateType>
            <updateDesc xsi:type="xsd:string">Addition</updateDesc>
        </ns1972:syncOrderRelation>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
View user's profileFind all posts by astewaySend private message
How to get a single element from a soap call
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic