为什么SOAPUI返回错误的请求?
我已经创建了一个要测试的为什么SOAPUI返回错误的请求?,soap,wsdl,soapui,Soap,Wsdl,Soapui,我已经创建了一个要测试的soapui项目 发送此请求时 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:x/="http://www.w3schools.com/xml/"> <soapenv:Header/> <soapenv:Body> <x/:CelsiusToFahrenheit> <!--
soapui
项目
发送此请求时
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:x/="http://www.w3schools.com/xml/">
<soapenv:Header/>
<soapenv:Body>
<x/:CelsiusToFahrenheit>
<!--Optional:-->
<x/:Celsius>30</x/:Celsius>
</x/:CelsiusToFahrenheit>
</soapenv:Body>
由于名称空间中的特殊字符(
x/
),该错误非常小,可以通过验证请求(在请求编辑器中单击键“Alt+v”)找到该字符
无法理解soapUI生成请求时为什么会出现这种特殊字符
如何使请求有效?
请将请求更改为以下内容(将x/
替换为x
):
30
下面是更改上述请求时成功响应的屏幕截图
HTTP/1.1 400 Bad Request
Cache-Control: private,public
Content-Type: text/xml; charset=utf-8
Date: Sun, 28 Feb 2016 17:33:28 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 0