51Testing软件测试论坛

标题: 如何调用WebServicer接口之Postman [打印本页]

作者: lsekfe    时间: 2022-12-19 15:33
标题: 如何调用WebServicer接口之Postman
一、webServie如下:
  1. <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">
  2.   <wsdl:types>
  3.   <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">
  4.   <xs:element name="SSKH001" type="tns:SSKH001"/>
  5.   <xs:complexType name="SSKH002">
  6.   <xs:sequence>
  7.   <xs:element form="qualified" minOccurs="0" name="compId" type="xs:string"/>
  8.   <xs:element form="qualified" minOccurs="0" name="revenueNo" type="xs:string"/>
  9.   <xs:element form="qualified" minOccurs="0" name="revenueItem" type="xs:string"/>
  10.   </xs:sequence>
  11.   <wsdl:portType name="WebService">
  12.   <wsdl:operation name="SSKH002">
  13.   <wsdl:input message="tns:SSKH002" name="SSKH002"></wsdl:input>
  14.   <wsdl:output message="tns:SSKH002Response" name="SSKH002Response"></wsdl:output>
  15.   </wsdl:operation>
  16.   <wsdl:operation name="SSKH001">
  17.   <wsdl:input message="tns:SSKH001" name="SSKH001"></wsdl:input>
  18.   <wsdl:output message="tns:SSKH001Response" name="SSKH001Response"></wsdl:output>
  19.   </wsdl:operation>
  20.   </wsdl:portType>
  21.   <wsdl:binding name="WebServiceImplServiceSoapBinding" type="tns:WebService">
  22.   <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
  23.   <wsdl:operation name="SSKH002">
  24.   <soap:operation soapAction="" style="document"/>
  25.   <wsdl:input name="SSKH002">
  26.   <soap:body use="literal"/>
  27.   </wsdl:input>
  28.   <wsdl:output name="SSKH002Response">
  29.   <soap:body use="literal"/>
  30.   </wsdl:output>
  31.   </wsdl:operation>
  32.   <wsdl:operation name="SSKH001">
  33.   <soap:operation soapAction="" style="document"/>
  34.   <wsdl:input name="SSKH001">
  35.   <soap:body use="literal"/>
  36.   </wsdl:input>
  37.   <wsdl:output name="SSKH001Response">
  38.   <soap:body use="literal"/>
  39.   </wsdl:output>
  40.   </wsdl:operation>
  41.   </wsdl:binding>
  42.   <wsdl:service name="WebServiceImplService">
  43.   <wsdl:port binding="tns:WebServiceImplServiceSoapBinding" name="WebServiceImplPort">
  44.   <soap:address location="http://192.168.7.201:8102/services/saleWaybill"/>
  45.   </wsdl:port>
  46.   </wsdl:service>
  47.   </wsdl:definitions>

复制代码


 二、设置url:192.168.7.201:8102/services/saleWaybill由local指定

  三、设置header:Content-Type=text/xml;charset=utf-8
  四、设置body格式 raw,xml

  五、设置body内容

  命名空间在此指定:

  方法名在此指定:







欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2