Forum Discussion
Glad you got the data getting returned. It took me awhile to puzzle that piece out my first time. :) When you say store these pieces of data in an array, what do you mean and what is the intent? I may need some examples of what you are trying to do and some sample requests / responses / etc to figure this next part out. :)
I have a set of attributes in response which is stored in DB in JSON format. Validating if the details in DB are retrieved in response correctly is my final motive.
So, I have split the JSON data and stored it in different arrays - say attributeName, attributeId, attributeValue.
Similarly, I wanted to store the xml response attribute details in an array and finally compare both the arrays.
I have successfully did the Json data storing in array. Now, I wanted to have the response data also to be stored in array, so that i can conclude by comparing both the arrays. Please suggest.
Sample response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns4:GetAccountDetailsResponseMessage>
</ns4:account>
.....
<ns6:CustomCustomerAccount>
<ns3:attributes>
<ns3:attributeName>TELE</ns3:attributeName>
<ns3:attributeId>TRUE</ns3:attributeId>
<ns3:attributeValue/>
</ns3:attributes>
<ns3:attributes>
<ns3:attributeName>SMS</ns3:attributeName>
<ns3:attributeId>AVAILABLE</ns3:attributeId>
<ns3:attributeValue/>
</ns3:attributes>
</ns6:CustomCustomerAccount>
</ns4:account>
</ns4:GetAccountDetailsResponseMessage>
</soap:Body>
</soap:Envelope>
Related Content
- 5 years agounderqualified
- 3 years agogoogleid_114550