Postman如何调用WebServicer接口的

发表于:2022-12-19 10:12

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:中年大叔的程序员梦    来源:CSDN

分享:
  一、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指定
  三、设置header:Content-Type=text/xml;charset=utf-8
  四、设置body格式 raw,xml
  五、设置body内容
  命名空间在此指定:
  方法名在此指定:
  本文内容不用于商业目的,如涉及知识产权问题,请权利人联系51Testing小编(021-64471599-8017),我们将立即处理
《2023软件测试行业现状调查报告》独家发布~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号