SOAP RESPONSE 1:
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"
soap:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
<soap:Body>
<m:basicObj xmlns:m="https://www.w3schools.com/prices">
<m:personId>22345</m:personId>
<m:personType>M</m:personType>
</m:basicObj>
<n:addressObj xmlns:n="https://www.w3schools.com/address">
<n:addressLine1>Rajaji nagar</n:addressLine1>
<n:city>Mumbai</n:city>
<n:pinCode>245321</n:pinCode>
</n:addressObj>
</soap:Body>
SOAP RESPONSE 2:
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"
soap:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
<soap:Body>
<m1:basicObject xmlns:m1="https://www.w3schools.com/prices">
<m1:personIdentification>22345</m1:personIdentification>
<m1:AdminPersonType>M</m1:AdminPersonType>
</m1:basicObject>
<m1:basicObject xmlns:m1="https://www.w3schools.com/prices">
<m1:personIdentification>12456</m1:personIdentification>
<m1:AdminPersonType>F</m1:AdminPersonType>
</m1:basicObject>
<k:addressObject xmlns:k="https://www.w3schools.com/address">
<k:address>Rajaji nagar</k:address>
<k:cityAddress>Mumbai</k:cityAddress>
<k:stateAddress>DF</k:stateAddress>
<k:pin>245321</k:pin>
</k:addressObject>
</soap:Body>
</soap:Envelope>
</soap:Envelope>
Now I wanted to compare personId with personIdentification i.e if 22345(personId from response 1) is present in response2 I wanted to display both personId:22345 and personIdentification:22345 along with the tagNames in excel sheet.
Expected output:
basicObj |
basicObject |
personId=22345 |
personIdentification=22345 |
personType=M |
AdminPersonType=M |
addressObj |
addressObject |
addressLine1=Rajaji nagar |
address=Rajaji nagar |
city=Mumbai |
cityAddress=Mumbai |
pinCode=245321 |
pin=245321 |
|
|
If the data(1st response) is present in 2nd response it should give the corresponding element with tag name from 2nd response.If not, display only data(1st response) with tag name.
I have only id value if I hit that id in the wsdl, different id's will produce different responses.I will not know the tagNames and tagValues before hitting the wsdl.
NOTE: I will hit the two wsdl's with same id, only then corresponding data will come but in different tagNames, that is were problem starts. i have to compare responses and give the result.
Now you are clear with the problem?