一般情況下使用soapui工具測試ws接口,那么能不能使用postman測試呢?當然可以,往下看。
1. 首先請求類型為post 填寫上ws地址 ,url地址后不追加?wsdl
2. 設置請求頭 header Content-type text/xml
3. 填寫請求體內容 raw
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://server.xfire.xerp.nstc.com">
<soapenv:Header/>
<soapenv:Body>
<ser:send>
<ser:in0><![CDATA[ <XERP> <HEAD> <BIZCODE>8800</BIZCODE> </HEAD> <BODY></BODY> </XERP> ]]></ser:in0>
</ser:send>
</soapenv:Body>
</soapenv:Envelope>
響應內容: