乱七八糟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工具测试

原文地址:https://www.cnblogs.com/wangxusummer/p/5435343.html