51Testing软件测试论坛
标题:
帮忙看一下这段Webservice脚本错误在哪?
[打印本页]
作者:
cauivy
时间:
2009-7-1 10:09
标题:
帮忙看一下这段Webservice脚本错误在哪?
[脚本]
Action()
{
int rc=0;
unsigned longconverted_buffer_size_uncode=0;
char *converted_buffer_unicode=NULL;
char *strnew= NULL;
char strnew2[1024];
web_add_header("soapaction","\"\"");
web_add_header("User-Agent","Jakarta Commons-HttpClinet/3.1");
web_add_header("Content-Type","text/xml;charset=UTF-8");
soap_request("StepName=uploadMMS",
"URL=http://123.127.98.43:80/UCard/UCService/uploadMMService",
"SOAPEnvelope= \"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:web=\"http://webservice.couponcard.ufmobile.com/\">
"<soapenv:Header/>"
"<soapenv:Body>"
"<web:uploadMMS>"
"<arg0>8075342000080-76123-435826-11543</arg0>"
"<arg1>hello</arg1>"
"<arg2>filename</arg2>"
"<arg3>142</arg3>"
"<arg4>123</arg4>"
"<arg5>13693300428</arg5>"
"</web:uploadMMS>"
"</soapenv:Body>"
"</soapenv:Envelope>",
"Snapshot=t1.inf",
"ResponseParam=result",
LAST);
return 0;
}
运行后LOG提示如下:
In file included from d:\性能脚本\upload5\\combined_upload5.c:4:
Action.c:28:36: unterminated string or character constant
Action.c:14: possible real start of unterminated constant
作者:
cauivy
时间:
2009-7-1 13:30
已经解决了!
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2