51Testing软件测试论坛
标题:
webservice录制的问题
[打印本页]
作者:
lingyun1104
时间:
2008-7-30 17:09
标题:
webservice录制的问题
以下是录制WEBSERVICE时生成的脚本:
web_add_header("Content-Type", "text/xml; charset=utf-8");
web_add_header("Content-Type", "text/xml; charset=utf-8");
web_add_header("Content-Type", "text/xml; charset=utf-8");
web_add_header("Content-Type", "text/xml; charset=utf-8");
web_add_header("Content-Type", "text/xml; charset=utf-8");
web_add_header("Content-Type", "text/xml; charset=utf-8");
web_add_header("Content-Type", "text/xml; charset=utf-8");
以前都是生下面的脚本:
web_add_header("Content-Type", "text/xml; charset=utf-8");
soap_request("StepName=ProcessRequest_9",
"URL=http://219.134.185.216/CMCWebServiceV2/MainService.asmx",
"SOAPEnvelope=<?xml version=\"1.0\" encoding=\"GB2312\" standalone=\""
"no\"?><soap:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" "
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:soap=\""
"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><ProcessRequest"
" xmlns=\"http://tempuri.org/\"><action>Depot.Codeco.QueryCodeco</"
"action><requestViewStateString>/"
"wEWCB4Fd2hlcmUFzwEgREVQT1RfQ09NUEFOWV9JRCA9ICc2NjEnIGFuZCBDT05UQV9JTl9"
"EQVRFID49IHRvX2RhdGUoJzIwMDgtMDYtMTggMDA6MDAnLCd5eXl5LW1tLWRkIGhoMjQ6b"
"Wk6c3MnKSBhbmQgQ09OVEFfSU5fREFURSA8PSB0b19kYXRlKCcyMDA4LTA3LTAyIDIzOjU"
"5JywneXl5eS1tbS1kZCBoaDI0Om1pOnNzJykgYW5kIERFTF9NQVJLID0gMCBhbmQgUkVDT"
"1JEX1RZUEU9MSAeBWluZGV4AgEeBHNpemUCHh4DSV9FBQFJ</"
"requestViewStateString></ProcessRequest></soap:Body></soap:Envelope>",
"Snapshot=t9.inf",
"ResponseParam=response",
LAST);
是不是我设置出问题,有遇到相同问题的朋友给解释一下。
作者:
wangyong3552128
时间:
2009-4-7 12:11
标题:
2008-7-30 那么久啦 。
web_service_call,就是调用Web Servcie,既然已经call了,那就得写明白各个参数了,就不能是密文了;soap_request,就是发送soap格式的request,只要是soap格式,发啥都行
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2