Forum Discussion
Kathleen_Leake
16 years agoNew Contributor
Well, I've made progress. I used a second XmlHolder to get the inner XML. Now I'm able to capture the creditApplicationId value. However I'm still having trouble with the Status attribute.
My Groovy script has this:
// get the inner XML data
def innerXMLData = holderOuterXML["//processRequestReturn"]
def holderInnerXML = groovyUtils.getXmlHolder( innerXMLData )
// get the status to make sure it was successful
responseStatus = holderInnerXML["//Outcome/@Status"]
log.info( "response status (partial XPath) = " + responseStatus )
responseStatus = holderInnerXML["/Envelope/Service/Operation/Response/Outcome/@Status"]
log.info( "response status (full XPath) = " + responseStatus )
The two log lines show:
Wed May 06 12:04:32 PDT 2009:INFO:response status (partial XPath) = {}
Wed May 06 12:04:32 PDT 2009:INFO:response status (full XPath) = {}
Where am I going wrong?
My Groovy script has this:
// get the inner XML data
def innerXMLData = holderOuterXML["//processRequestReturn"]
def holderInnerXML = groovyUtils.getXmlHolder( innerXMLData )
// get the status to make sure it was successful
responseStatus = holderInnerXML["//Outcome/@Status"]
log.info( "response status (partial XPath) = " + responseStatus )
responseStatus = holderInnerXML["/Envelope/Service/Operation/Response/Outcome/@Status"]
log.info( "response status (full XPath) = " + responseStatus )
The two log lines show:
Wed May 06 12:04:32 PDT 2009:INFO:response status (partial XPath) = {}
Wed May 06 12:04:32 PDT 2009:INFO:response status (full XPath) = {}
Where am I going wrong?