51Testing软件测试论坛
标题:
帮忙看下web_custom_request的用法错在哪里
[打印本页]
作者:
naoge
时间:
2011-6-27 13:36
标题:
帮忙看下web_custom_request的用法错在哪里
我要post如下报文,用web_custom_request后报错,不知错在哪里,求教
http://xx.xx.xx.xx/CallCenter/cs ... eServlet?XMLString=
<?xml version="1.0" encoding="GBK"?><eb><pub><tc>L7235</tc><fr>1</fr><dt>2011-05-12</dt><tm><ws>18:45:34</ws></tm></pub><in><CHANNEL>110</CHANNEL><CALLDATA>messageName=EventAgentLogout#@@#CallUuid=null#@@#dn=31005#@@#otherDN=null#@@#connId=null#@@#transferConnId=null#@@#callType=-999#@@#agentId=290005#@@#EmulateLogin=true#@@#AgentSessionID=012GNUKOGKESNC4NAB42SCLAES0000BP#@@#managerId=020001549</CALLDATA>
<REMOTEIP>xx.xx.xx.xx</REMOTEIP></in></eb>
LR代码
web_custom_request("web_custom_request",
"URL=http://xx.xx.xx.xx/CallCenter/csr/sysfunc/OpenServiceServlet",
"Method=POST",
"TargetFrame=",
"Resource=0",
"Referer=",
"Body=?XMLString=<?xml version=\"1.0\" encoding=\"GBK\"?><eb><pub><tc>L7235</tc><fr>1</fr><dt>2011-05-12</dt><tm><ws>18:45:34</ws></tm></pub><in><CHANNEL>110</CHANNEL><CALLDATA>messageName=EventAgentLogout#@@#CallUuid=null#@@#dn={ddn}#@@#otherDN=null#@@#connId=null#@@#transferConnId=null#@@#callType=-999#@@#agentId={agentid}#@@#EmulateLogin=true#@@#AgentSessionID=012GNUKOGKESNC4NAB42SCLAES0000BP#@@#managerId={managerid}</CALLDATA>
<REMOTEIP>xx.xx.xx.xx</REMOTEIP></in></eb>",
LAST);
作者:
naoge
时间:
2011-6-27 14:30
紧急求助啊,谢谢各位
作者:
beihai_kun
时间:
2012-9-21 10:50
正确的是:
web_custom_request("web_custom_request",
"URL=http://xx.xx.xx.xx/CallCenter/csr/sysfunc/OpenServiceServlet",
"Method=POST",
"TargetFrame=",
"Resource=0",
"Referer=",
"Body=?XMLString=<?xml version=\"1.0\" encoding=\"GBK\"?><eb><pub><tc>L7235</tc><fr>1</fr><dt>2011-05-12</dt><tm><ws>18:45:34</ws></tm></pub><in><CHANNEL>110</CHANNEL><CALLDATA>messageName=EventAgentLogout#@@#CallUuid=null#@@#dn={ddn}#@@#otherDN=null#@@#connId=null#@@#transferConnId=null#@@#callType=-999#@@#agentId={agentid}#@@#EmulateLogin=true#@@#AgentSessionID=012GNUKOGKESNC4NAB42SCLAES0000BP#@@#managerId={managerid}</CALLDATA>"
"REMOTEIP>xx.xx.xx.xx</REMOTEIP></in></eb>",
LAST);
作者:
beihai_kun
时间:
2012-9-21 10:52
[img][/img]
作者:
云层
时间:
2012-9-21 13:15
你也要给个具体的错误出来吧,一般的问题就是换行导致的
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2