line -1: Validation of SOAP-Encoded messages not supported

it2022-05-05  151

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:iot="http://iot.web.webservice.com"> <soapenv:Header/> <soapenv:Body><iot:delivery soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <username xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">account</username> <password xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">pwd</password> <id xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">12</id> <deliveryStatus xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">77</deliveryStatus> <deliveryTime xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">2019-02-11</deliveryTime> </iot:delivery> </soapenv:Body> </soapenv:Envelope>

 

 

在soapUI菜单栏 "File > Preferences", 然后 "Editor Settings", 去掉这项的勾选 "Abort on invalid requests".

 

 

以上解决使用SOAPUI工具调试webService接口遇到的问题

转载于:https://www.cnblogs.com/QW-lzm/p/10755364.html


最新回复(0)