51Testing软件测试论坛
标题:
【求破】web_custom_request自定义写http webservice Soap报错的问题
[打印本页]
作者:
花总丢了金箍棒
时间:
2016-7-18 15:03
标题:
【求破】web_custom_request自定义写http webservice Soap报错的问题
Action()
{
web_add_header("Accept-Encoding","gzip,deflate");
web_add_header("Content-Type","text/xml;charset=UTF-8");
web_add_header("SOAPAction","\"\"");
web_add_header("Host","10.10.70.192:7001");
web_add_header("Connection","Keep-Alive");
web_add_header("User-Agent","Apache-HttpClient/4.1.1 (java 1.5)");
web_custom_request("LoginLogSave",
"Method=POST",
"URL=http://10.10.70.192:7001/logwebservice/webservice/LoginLogService",
//"RecContentType=text/xml",
"Mode=HTML",
//"EncType=text/xml;charset=UTF-8",
//"UserAgent=Apache-HttpClient/4.1.1",
// "ContentEncoding=gzip,deflate",
"Resource=0",
"Body=<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:web=\"http://webservice.loginLog.log.pisp.telchina.cn/\">"
"<soapenv:Header/>"
"<soapenv:Body>"
"<web:loginLogSave>"
"<arg0>"
"{'DLZH':'superadmin','DLRZID':'test1234567','RYMC':'ӬܶڜmԱ','IP':'16.13.216.140','DLXTBH':'04','DLXTMC':'־ϱąۧ','DLSJ':'2015-11-08 12:25:16.426'}"
"</arg0>"
"</web:loginLogSave>"
"</soapenv:Body>"
"</soapenv:Envelope>",
LAST);
return 0;
}
报错信息见图:
作者:
花总丢了金箍棒
时间:
2016-7-18 15:05
不知道地址腰写到哪一层?要加wsdl么?
作者:
yss7916064
时间:
2016-7-19 15:27
可能需要加session值吧
作者:
yss7916064
时间:
2016-7-19 15:27
可能需要加session值吧
作者:
jingzizx
时间:
2016-7-19 16:59
要加?wsdl
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2