postman调用WebServicer接口

一、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>
  • 2
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值