51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 2186|回复: 1
打印 上一主题 下一主题

[原创] 客户端压力测试,选择webservice协议,运行脚本报错

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-11-3 18:18:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
脚本代码:
        web_add_header("Content-Type", "text/xml; charset=\"utf-8\"");

        soap_request("StepName=encodePassword",
                "URL=http://183.62.39.211:6003/prtwf/wsfire/PasswordWebService",
                "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"zh_cn\"?>\r\n<SOAP-ENV"
                ":Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\""
                " xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://"
                "www.w3.org/2001/XMLSchema-instance\"><SOAP-ENV:Body><encodePassword "
                "xmlns=\"http://webService.service.oa.westwind.com\"><in0>111111</in0>"
                "<in1>111111</in1></encodePassword></SOAP-ENV:Body></SOAP-ENV"
                ":Envelope>\r\n",
                "Snapshot=t2.inf",
                "ResponseParam=response",
                LAST);

错误提示信息:
vuser_init.c(46): Warning -26594: The header being added may cause unpredictable results if applied to ALL the URLs generated on behalf of the next script function. It will apply to the primary URL only.          [MsgId: MWAR-26594]
vuser_init.c(46): web_add_header("Content-Type") highest severity level was "warning"          [MsgId: MMSG-26391]
vuser_init.c(48): soap_request "encodePassword" started.
vuser_init.c(48): soap_request "encodePassword" was successful


哪位高手能帮忙解惑一下
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2011-11-3 21:38:33 | 只看该作者
使用soap_request()这种方式,需要在其前面加上以下POST、HOST和Content-Type三个web_add_auto_header()头函数。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-5-12 07:52 , Processed in 0.069457 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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