Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def result = resp.Body.elementName
- <?xml version="1.0" encoding="UTF-8"?>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
- <soapenv:Body>
- <ns2:**Response** xmlns:ns2="URL" xmlns="URL" xmlns:ns4="URL" xmlns:ns3="URL" xmlns:ns5="URL">
- <something>Code</something>
- <somethingDescription>Message</somethingDescription>
- <ns2:pending/>
- <ns2:posted/>
- </ns2:Response>
- </soapenv:Body>
- def xmlContent = ctx.getPreviousResult().getResponseDataAsString();
- def resp = new XmlSlurper().parseText(xmlContent);
- def result = resp.Body.Response;
- def respCode = result.reasonCode;
Add Comment
Please, Sign In to add comment