Reputation: 51
I am trying to read the PresentationID xml value received by a SoapUI mockService, I send in a POST request:
<?xml version="1.0" encoding="UTF-8"?>
<ContentRequest xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
<PresentationID>test41</PresentationID>
</ContentRequest>
I can see that the request payload I send is correct + "Content-Type" header is application/xml
But in SoapUI those will always print: null
log.info mockRequest.getContentElement()
log.info mockRequest.requestContent
log.info mockRequest.getRequestXmlObject()
I read both: SoapUI getting request parameters in mock service script
transferring values from request to response (soapUI mock service)
And also tried the SoapUI tutorial: http://www.soapui.org/Service-Mocking/creating-dynamic-mockservices.html but no success yet..
Any ideas will be greatly appreciated! I am using SoapUI 5.0.0
Upvotes: 1
Views: 1850
Reputation: 21
I just had the same issue. Updating Soap-UI to the latest release http://www.soapui.org/downloads/latest-release.html solved the problem.
log.info mockRequest.getContentElement() still returns null, but the other two are working fine.
Happy Testing :)
Upvotes: -2