postman调用WebServicer接口
postman调用webservie
·
一、webServie即接口的wsdl文件,实例接口为:http://192.168.7.201:8102/services/saleWaybill?wsdl即文件中的location加?wsdl
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://service.saleWaybill.com" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" name="WebServiceImplService" targetNamespace="http://service.saleWaybill.com">
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://service.saleWaybill.com" elementFormDefault="unqualified" targetNamespace="http://service.saleWaybill.com" version="1.0">
<xs:element name="SSKH001" type="tns:SSKH001"/>
<xs:complexType name="SSKH002">
<xs:sequence>
<xs:element form="qualified" minOccurs="0" name="compId" type="xs:string"/>
<xs:element form="qualified" minOccurs="0" name="revenueNo" type="xs:string"/>
<xs:element form="qualified" minOccurs="0" name="revenueItem" type="xs:string"/>
</xs:sequence>
<wsdl:portType name="WebService">
<wsdl:operation name="SSKH002">
<wsdl:input message="tns:SSKH002" name="SSKH002"></wsdl:input>
<wsdl:output message="tns:SSKH002Response" name="SSKH002Response"></wsdl:output>
</wsdl:operation>
<wsdl:operation name="SSKH001">
<wsdl:input message="tns:SSKH001" name="SSKH001"></wsdl:input>
<wsdl:output message="tns:SSKH001Response" name="SSKH001Response"></wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WebServiceImplServiceSoapBinding" type="tns:WebService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="SSKH002">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="SSKH002">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="SSKH002Response">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="SSKH001">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="SSKH001">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="SSKH001Response">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WebServiceImplService">
<wsdl:port binding="tns:WebServiceImplServiceSoapBinding" name="WebServiceImplPort">
<soap:address location="http://192.168.7.201:8102/services/saleWaybill"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
二、设置url:http://192.168.7.201:8102/services/saleWaybill由location指定
三、设置header:Content-Type=text/xml;charset=utf-8
四、设置body格式 raw,xml
五、设置body内容
命名空间wsdl文件在此处中指定
方法名wsdl文件在此处中指定
完整的body内容
<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:tns="http://service.saleWaybill.com">
<soapenv:Header/>
<soapenv:Body>
<SSKH002 xmlns="http://service.saleWaybill.com">
<compId>0291</compId>
<revenueNo>0291X2406020547</revenueNo>
<revenueItem>01</revenueItem>
<deliveryNo>LT240628072301</deliveryNo>
<orderNo>NH240626003</orderNo>
<orderItem>008</orderItem>
<dispListNo>FHN240626022</dispListNo>
<transGPNo>S01218</transGPNo>
<transCompId></transCompId>
<carNo>冀J0Y905</carNo>
<transType>H</transType>
<shipDate>2024-06-28 11:21:54</shipDate>
<deliWet>33.72</deliWet>
<custNo>11400000139</custNo>
<salesUnit></salesUnit>
<salesArea>009</salesArea>
<tradeNo>SPHC-B</tradeNo>
<prodClass>H</prodClass>
<prodType>HRC</prodType>
<deliveryAdd>卸货时间:00:00-00:00</deliveryAdd>
<apUnitPrice>44</apUnitPrice>
<apFrnAmt>1483.68</apFrnAmt>
<arUnitPrice>47.96</arUnitPrice>
<arFrnAmt>1617.21</arFrnAmt>
<crcyUnit>CNY</crcyUnit>
<exchange>0</exchange>
<confirmEmpNo>014534 霍国龙</confirmEmpNo>
<confirmDate>20240628</confirmDate>
<salesID>012875 罗利国</salesID>
<specMark>3mm*910mm*C</specMark>
<beginWarehouseNo>M200056 </beginWarehouseNo>
<endarea>山东</endarea>
<loadWgtKind>标载</loadWgtKind>
<lengthKind></lengthKind>
<widthKind>无超宽</widthKind>
<siteKind>市场</siteKind>
<orderType>国内</orderType>
<province>山东省</province>
<city>滨州市</city>
<county>博兴县</county>
<prodTypeName>热轧卷板</prodTypeName>
</SSKH002>
</soapenv:Body>
</soapenv:Envelope>
更多推荐
所有评论(0)