Forum Discussion

stores80's avatar
stores80
Occasional Contributor
6 years ago

Mock Response - Script returned null

Please could someone advise with the blow query.

 

I have set up a Mock Response, which succesfully responds to the incomming request. I am trying to extract certain details from the inbound request using the 'SCRIPT' dispatch method. 

 

I have added the following line, but when I execute it returns 'Script returned [null]'

 

def holder = new com.eviware.soapui.support.XmlHolder( mockRequest.requestContent )

 Am I missed something as I can see the request arriving in the 'Request' window.

 

Many thanks,

1 Reply

  • nmrao's avatar
    nmrao
    Champion Level 3
    Would you please provide the sample input data and the output expected? That would help better understanding of the issue.