如何调用WebServicer接口之Postman
一、webServie如下:<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:192.168.7.201:8102/services/saleWaybill由local指定
http://www.51testing.com/attachments/2022/12/15326880_202212161517361lj0h.png
三、设置header:Content-Type=text/xml;charset=utf-8
四、设置body格式 raw,xml
http://www.51testing.com/attachments/2022/12/15326880_202212161517391KlXs.png
五、设置body内容
http://www.51testing.com/attachments/2022/12/15326880_202212161517421Fc45.png
命名空间在此指定:
http://www.51testing.com/attachments/2022/12/15326880_202212161517441hoo4.png
方法名在此指定:
http://www.51testing.com/attachments/2022/12/15326880_2022121615174616phw.png
页:
[1]