Forum Discussion
divijd
12 years agoOccasional Contributor
this is the exact xml response which i am getting the search.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<SearchResponse>
<SearchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Results xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a:string>
<![CDATA[<?xml version="1.0" encoding="utf-16"?>
<ArrayOfMobilePhone>
<MobilePhone>
<companyName>Nokia</companyName>
<modelNumber>12345</modelNumber>
</MobilePhone>
<MobilePhone>
<companyName>Nokia</companyName>
<modelNumber>54632</modelNumber>
</MobilePhone>
<MobilePhone>
<companyName>Apple</companyName>
<modelNumber>A654</modelNumber>
</MobilePhone>
</ArrayOfMobilePhone>]]>
</a:string>
</Results>
<Status>Successful</Status>
<Warning i:nil="true"/>
</SearchResult>
</SearchResponse>
</s:Body>
</s:Envelope>
Now i need to extract a particular mobile phone object which is in Results/a[0]/string... i am unable to get.
Waiting for your reply.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<SearchResponse>
<SearchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Results xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a:string>
<![CDATA[<?xml version="1.0" encoding="utf-16"?>
<ArrayOfMobilePhone>
<MobilePhone>
<companyName>Nokia</companyName>
<modelNumber>12345</modelNumber>
</MobilePhone>
<MobilePhone>
<companyName>Nokia</companyName>
<modelNumber>54632</modelNumber>
</MobilePhone>
<MobilePhone>
<companyName>Apple</companyName>
<modelNumber>A654</modelNumber>
</MobilePhone>
</ArrayOfMobilePhone>]]>
</a:string>
</Results>
<Status>Successful</Status>
<Warning i:nil="true"/>
</SearchResult>
</SearchResponse>
</s:Body>
</s:Envelope>
Now i need to extract a particular mobile phone object which is in Results/a[0]/string... i am unable to get.
Waiting for your reply.