51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

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

[求助] webservice性能测试脚本疑问

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-11-13 11:12:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
脚本如下:
Action()
{

        soap_request("StepName=SOAP Request",                                                                               
                "URL=http://134.64.110.40:8000/UnifyCash/services/ESBService",                                                                               
                "SOAPEnvelope="
                "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">"
            "<soap:Header>"
              "<soap:username>test</soap:username>"
              "<soap:password>aaa111</soap:password>"
            "</soap:Header>"
                        "<SOAP-ENV:Body>"
                                "<m:queryResuoceNbr xmlns:m=\"http://imp.webservice.pst.crm.tydic.com\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">"
                                        "<busiCode xsi:type=\"xsd:string\">abc111</busiCode>"
                                        "<paraXml xsi:type=\"xsd:string\">"
                                                "<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?><ESB><TIME>20121101104821</TIME><MSG_ID>12121232133</MSG_ID><SERVICE_CD>exeUnifyCash0001</SERVICE_CD><TO>tysy</TO><FROM>yyx</FROM><contractBody><buyType>11</buyType><staffCode>admin</staffCode><resuoceNbr>A1000028904940</resuoceNbr><payChange>870</payChange><resuoceId>7370</resuoceId><agentPartmentId>1</agentPartmentId><type>2</type><privilegePrice>30</privilegePrice><marketCode>11111111111111</marketCode></contractBody></ESB>]]>"
                                        "</paraXml>"
                                "</m:queryResuoceNbr>"
                        "</SOAP-ENV:Body>"
                "</SOAP-ENV:Envelope>",                                                                               
                "SOAPAction=qyeryResuoceNbr",                                                                               
                "ResponseParam=response",                                                                               
                "Snapshot=t1352775831.inf",                                                                            
                LAST);

        return 0;
}

运行报错:
Action.c(4): Warning: HTTP status code 500 returned by the server
Action.c(4): Notify: Saving Parameter "response = <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SAXParseException: The prefix &quot;soap&quot; for element &quot;soap:Header&quot; is not bound.</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">yytmh</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>"
Action.c(4): Error: <CENTER><STRONG><FONT COLOR=#FF0031>Expected SOAP result, received SOAP fault</FONT></STRONG></CENTER>
Action.c(4): Error: SOAP request "SOAP Request" execution failed
Ending action Action.
Ending iteration 1.
Ending Vuser...

请问各位大神,具体是哪里需要调整~~
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-5-5 02:29 , Processed in 0.097477 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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