Contributions
Re: SOAP UI 5.0-groovy Automation
nmrao your code is Perfect 200% I wanted to know this how to fetch nodeNames and parentNodeName if you are given with the nodeValue.. for eg. <PartyObj> <PersonId>123</PersonId> <Address>hifiCity</Address> </PartyObj> Now I have only number 123 and hifiCity (values) with this can I fetch back nodeName and ParentNodeName?893Views0likes1CommentRe: SOAP UI 5.0-groovy Automation
Hi really sorry I am not able to give the original response but still i have made an fake response resembling the same which I am working... I that code u have defined map with sample data what If I dont know the response tagNames? How to do dynamically?@nmrao1.5KViews0likes6Comments- 1.6KViews0likes10Comments
- 1.6KViews0likes11Comments
Re: SOAP UI 5.0-groovy Automation
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 onlydata(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?1.6KViews0likes1Comment- 2.2KViews0likes0Comments