美文网首页
001.SoapUI测试SOAP方法传参问题

001.SoapUI测试SOAP方法传参问题

作者: airkisser | 来源:发表于2017-02-24 01:03 被阅读0次

    1.传递时间戳

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.accessCtrlMgt.stee.com/">
       <soapenv:Header/>
       <soapenv:Body>
          <ws:createRole>
             <!--Optional:-->
             <arg0>
                <!--Optional:传递时间戳-->
                <createTime>2017-02-23T20:00:00</createTime>
                <!--Optional:-->
                <description>操作用户</description>
                <!--Optional:-->
                <id>3</id>
                <!--Optional:-->
                <roleName>User2</roleName>
             </arg0>
          </ws:createRole>
       </soapenv:Body>
    </soapenv:Envelope>
    

    2.传递List集合

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.accessCtrlMgt.stee.com/">
       <soapenv:Header/>
       <soapenv:Body>
          <ws:getAllUserRoleByIds>
             <!--Zero or more repetitions:此处传递List<String> arg0-->
             <arg0>1</arg0>
             <arg0>2</arg0>
          </ws:getAllUserRoleByIds>
       </soapenv:Body>
    </soapenv:Envelope>
    

    相关文章

      网友评论

          本文标题:001.SoapUI测试SOAP方法传参问题

          本文链接:https://www.haomeiwen.com/subject/comiwttx.html