webservice interface to request transmission postman

The first request is sent by the interface tool to the postman webservice, I encountered some pit, so it is still recording it.

First, the transmission request using the post

Two, headers add header information

Content-Type=text/xml

Accept-Charset=utf-8

Third, fill in the delivery address, such as http://192.168.10.11:8083/ffffff/services/CommunicationWebService?wsdl

Fourth, fill in the address format, written in strict accordance with the following format

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="http://component.webservice.application.xmzr.com/">
<soapenv:Header/>
<soapenv:Body>
<com:supplyXml>
<!--Optional:-->
<inputXml>
<![CDATA[
<REQUEST><参数名>TJ</参数名><PARAM><AA>0.01</AA></PARAM>
</REQUEST>
]]>


</inputXml>
</com:supplyXml>
</soapenv:Body>
</soapenv:Envelope>

 

After filling, can be performed, if requested, when the request is successful, the corresponding results are returned, such as

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:supplyXmlResponse xmlns:ns2="http://component.webservice.application.xmzr.com/">
<resultXml>&lt;?xml version="1.0" encoding="UTF-8"?>&#xd;
&lt;RESPONSE>&#xd;
& Lt; parameter name> TJ_XML_ZD & lt; / parameter name> & # xd;
</resultXml>
</ns2:supplyXmlResponse>
</soap:Body>
</soap:Envelope>

Guess you like

Origin www.cnblogs.com/bzdmz/p/11440974.html