51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 732|回复: 0
打印 上一主题 下一主题

[原创] 如何调用WebServicer接口之Postman

[复制链接]
  • TA的每日心情
    无聊
    昨天 09:05
  • 签到天数: 1023 天

    连续签到: 2 天

    [LV.10]测试总司令

    跳转到指定楼层
    1#
    发表于 2022-12-19 15:33:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    一、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内容

      命名空间在此指定:

      方法名在此指定:


    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-9-25 00:43 , Processed in 0.067492 second(s), 24 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表