无法发送到webservice接口
vuser_init(){
char buf;
strcpy(buf,"<provision_order> <requestMethod name=\"set-ngn-addinfo\">");
lr_output_message("%s",buf);
return 0;
web_service_call( "StepName=sendOrder_104",
"SOAPMethod=OrderReceiverService.OrderReceiver.sendOrder",
"ResponseParam=response",
"WSDL=F:/myself/zznode/loadrrnner/33OrderReceiver.wsdl",
"Snapshot=t1214895461.inf",
BEGIN_ARGUMENTS,
"orderClass=VOC",
"orderString={buf}",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
lr_think_time(3);
return 0;
}
运行结果:
Virtual User Script started
Starting action vuser_init.
vuser_init.c(5): <provision_order> <requestMethod name="set-ngn-addinfo">
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
但为什么调不到webservice接口
而"orderString=1111\"aa\"bb";却可以成功
但"orderString=1111\"<aa>\"bb";有尖括号的也不能成功
编译都是通过的 不用以下4行;
char buf;
strcpy(buf,"<provision_order> <requestMethod name=\"set-ngn-addinfo\">");
lr_output_message("%s",buf);
return 0;
直接"orderString=1111\"aa\"bb";却可以成功
"orderString=1111\"<aa>\"bb";有尖括号的也不能成功
页:
[1]