hello!!
i have a method 'void' with this fault response:
<soap:Envelope xmlns:soap="
http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<soap:Fault>
<soap:Code>
<soap:Value>?</soap:Value>
</soap:Code>
<soap:Reason>
<!--1 or more repetitions:-->
<soap:Text xml:lang="?">?</soap:Text>
</soap:Reason>
</soap:Fault>
</soap:Body>
</soap:Envelope>
the next step is modify the values with the groovy utils ( script ) because i want to use "mappers" from values to property file ( propertyTransfer ).
the script is:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
log.info( groovyUtils.projectPath );
// create holder for last response
def holder = groovyUtils.getXmlHolder( "write - Request#Response" )
holder.setNodeValue( "soap:Envelope/soap:Body/soap:Fault/soap:Code/soap:Value", "1" );
// update request with updated xml
groovyUtils.setPropertyValue( "write - Request", "Response", holder.prettyXml );
this is ok...but the values of the property has this values: "?"
how I could resolve it?
thanx alot!!