【发布时间】:2015-01-22 23:19:53
【问题描述】:
我正在尝试读取 SoapUI mockService 接收到的 PresentationID xml 值,我发送了一个 POST 请求:
<?xml version="1.0" encoding="UTF-8"?>
<ContentRequest xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
<PresentationID>test41</PresentationID>
</ContentRequest>
我可以看到我发送的请求载荷是正确的+“Content-Type”标头是application/xml
但在 SoapUI 中,这些总是会打印:null
log.info mockRequest.getContentElement()
log.info mockRequest.requestContent
log.info mockRequest.getRequestXmlObject()
我都读过:SoapUI getting request parameters in mock service script
transferring values from request to response (soapUI mock service)
还尝试了 SoapUI 教程:http://www.soapui.org/Service-Mocking/creating-dynamic-mockservices.html 但还没有成功..
任何想法将不胜感激! 我正在使用 SoapUI 5.0.0
【问题讨论】:
-
SoapUI 5.1.2 没有问题。所有三行都输出了一些东西。
标签: soapui