51Testing软件测试论坛
标题:
在使用soap_request时报错:Expected SOAP result, received SOAP fault
[打印本页]
作者:
fangx00
时间:
2012-2-22 11:03
标题:
在使用soap_request时报错:Expected SOAP result, received SOAP fault
原脚本:
Action()
{
web_add_auto_header("SOAPAction","test");
soap_request("StepName=SOAP Request",
"URL=http://192.168.10.166:8084/services/DecSyncWebService",
"SOAPEnvelope="
"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tran=\"http://transform.sxoa.gsb.essp.com/\">"
"<soapenv:Header/>"
"<soapenv:Body>"
"<tran:SendFile>"
"<filexml>"
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?><sxoa><text><id>131409347123468</id><title>ssss</title><contentdoc></contentdoc><filesxml><filemember><filename>13140685887181.jpg</filename><filexml>...</pathcontent></text></sxoa>]]>"
"</filexml>"
"</tran:SendFile>"
"</soapenv:Body>"
"</soapenv:Envelope>",
"SOAPAction=",
"ResponseParam=response",
"Snapshot=t1329878267.inf",
LAST);
return 0;
}
输出:
Starting action Action.
Action.c(3): web_add_auto_header("SOAPAction") was successful [MsgId: MMSG-26392]
Action.c(6): SOAP request "SOAP Request" started
Action.c(6): Warning: HTTP status code 500 returned by the server
Action.c(6): Error: <CENTER><STRONG><FONT COLOR=#FF0031>Expected SOAP result, received SOAP fault</FONT></STRONG></CENTER>
Action.c(6): Error: SOAP request "SOAP Request" execution failed
Ending action Action.
求达人留解决方法!
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2