zoukankan      html  css  js  c++  java
  • 乱七八糟1

    要求:测项目中已用的webservice 中的某个方法运行的时长

    方法

    1 抓包获取传输的数据

    <?xml version="1.0"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://ws.comp.xxxx.com/">
        <SOAP-ENV:Body>
            <ns1:mqSendRequest>
                <arg0>
                    <msgId>1331655146164259729931</msgId>
                    <destInterface>RepayCalculateN1</destInterface>
                    <jsonParam>{"loanAmount":"4500000","valueDate":"2016-04-26","loanTerm":"18","compreRate":"2","monthRate":"1.384","repayType":"1","loanType":"20"}</jsonParam>
                </arg0>
            </ns1:mqSendRequest>
        </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    2 保存xml至文件 入request.xml

    3 使用time 统计时间 curl发送请求 

     time curl -d  @request.xml -X POST  -H "Content-Type: text/xml;charset=UTF-8"  http://api.xxxxx.com/webservice/esbWS?wsdl

    windows下直接用soapui工具测试

  • 相关阅读:
    pymysql
    Mysql
    协程
    线程池
    线程 条件
    线程 事件
    线程
    requests
    Linux 时区不对的解决办法
    Linux 简单命令
  • 原文地址:https://www.cnblogs.com/wangxusummer/p/5435343.html
Copyright © 2011-2022 走看看