Forum Discussion
Jasper175
13 years agoFrequent Contributor
Thank you
I figured all you needed was the body, but I put the full code below.
The code you sent didn't work - seems you're using the full bodied Groovy Language. SoapUI seems to have a watered down version, unless you import.
println doesn't work in SoapUI - at least I never got it to do anything.
I have an error in Line 2.. I put in the testStep name
groovy.lang.MissingPropertyException: No such propery: groovyUtils for class: Script4 error at line: 2
Here is the full response of the api "getServiceDidMap"
I figured all you needed was the body, but I put the full code below.
The code you sent didn't work - seems you're using the full bodied Groovy Language. SoapUI seems to have a watered down version, unless you import.
println doesn't work in SoapUI - at least I never got it to do anything.
I have an error in Line 2.. I put in the testStep name
def response = context.expand( '${getServiceDidMap#Response}' )
def holderResponse = groovyUtils.getXmlHolder( response )
groovy.lang.MissingPropertyException: No such propery: groovyUtils for class: Script4 error at line: 2
Here is the full response of the api "getServiceDidMap"
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns2:GetServiceDidMapResponse xmlns:ns2="http://cleveland.vonage.com/services/servicelayer" xmlns:ns3="http://cleveland.vonage.com/services/servicelayer/internal" xmlns:ns4="http://cleveland.vonage.com/services/servicelayer/legacy">
<ns2:serviceEntities>
<ns2:networkId>128982952</ns2:networkId>
<ns2:didTargets>
<ns2:did>17325659833</ns2:did>
<ns2:didType>PHYS</ns2:didType>
<ns2:startDate>2012-10-16</ns2:startDate>
</ns2:didTargets>
<ns2:didTargets>
<ns2:did>17322025696</ns2:did>
<ns2:didType>TEMP</ns2:didType>
<ns2:startDate>2012-10-16</ns2:startDate>
</ns2:didTargets>
<ns2:startDate>2012-10-16</ns2:startDate>
</ns2:serviceEntities>
</ns2:GetServiceDidMapResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>