|
用LR8.0(有webservice补丁)写了一个脚本,如下:
web_service_call( "StepName=Manage_103",
"SOAPMethod=SmsReceiveService.SmsReceiveServiceSoap.Manage",
"ResponseParam=response",
"WSDL=http://smsreceiverservice.qualitynew.com/SmsReceiveService.asmx?wsdl",
"UseWSDLCopy=1",
"Snapshot=t1231331466.inf",
BEGIN_ARGUMENTS,
"requestXml=<?xml version=\"1.0\" encoding=\"UTF-8\"?><sms:Request xmlns:req=\"http://www.beyondbit.com/sms/sao/domains/request600001\" xmlns:sms=\"http://www.beyondbit.com/sms\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><sms:Head><sms:TrCode>600001</sms:TrCode><sms:ApplicationCode>smscenter</sms:ApplicationCode><sms:ApplicationPassword>123456</sms:ApplicationPassword><sms:UserUid>__sao__</sms:UserUid><sms:UserPassword>App1234</sms:UserPassword><sms:ClientTxSeq></sms:ClientTxSeq><sms:MacCode></sms:MacCode></sms:Head><sms:Body xsi:type=\"req:RequestBody600001\"><req:Sender>qqq</req:Sender><req:SenderAccount>zhangjr</req:SenderAccount><req:ReceiverAccount>luozhi</req:ReceiverAccount><req:ReceiverAccountType>ACCOUT</req:ReceiverAccountType><req:Group>0</req:Group><reqriority>5</reqriority><reqevel>L</reqevel><req:SMSContent>这是wwww</req:SMSContent><req:Signer></req:Signer></sms:Body></sms:Request>",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
只要不保存,运行都是OK的。但是保存后,就会报错:
Virtual User Script started
Starting action vuser_init.
vuser_init.c(4): web_service_call "Manage_103" started.
vuser_init.c(4): Using working copy of the WSDL file "http://smsreceiverservice.qualitynew.com/SmsReceiveService.asmx?wsdl"
vuser_init.c(4): Error: The wsdl file "http://smsreceiverservice.qualitynew.com/SmsReceiveService.asmx?wsdl" has an error. (Working copy for http://smsreceiverservice.qualit ... veService.asmx?wsdl does not exist.)
vuser_init.c(4): Error: web_service_call "Manage_103" execution failed
Abort was called from an action.
不管是用URL,还是特定的目录文件都会报这个错。望高手们帮忙解答。 |
|