求救!!回放flex项目的脚本出错
我用的是LR9.1,项目是flex + php。脚本录制时,一切正常。回放脚本,总是报错:
Error: Decoding of AMF message failed. Error is : ReadValue Failed due Insufficient data to read at location 6。
在run-time settings里的log设置后,回放,显示是 flex 和 php结合部分的那个页面,AMF需要php通过改页面传一个参数,但是这个参数,LR好像没录制到。
脚本如下:
flex_ping("1",
"URL=http://application/flashservices/gateway.php",
"Snapshot=t4.inf",
"DSId=nil",
LAST);
flex_remoting_call("amfphp::saveToBook",
"URL=http://application/flashservices/gateway.php",
"Snapshot=t5.inf",
INVOCATION,
"Target=/2",
"Operation=saveToBook",
"Destination=amfphp",
"DSEndpoint=http://application/flashservices/gateway.php",
"Source=com.sdi.services.BookPhotos",
"DSId=nil",
"Argument=<arguments><array><sequential><integer>756</integer></"
"sequential></array><integer>12345678</integer></arguments>",
LAST);
部分执行结果如下:
Action.c(61): t=592847ms: 146-byte response headers for "http://application/flashservices/gateway.php" (RelFrameId=1, Internal ID=9)
Action.c(61): HTTP/1.1 500 Internal Server Error\r\n
Action.c(61): Content-Type: text/html\r\n
Action.c(61): Content-Length: 369\r\n
Action.c(61): Date: Mon, 14 Jul 2008 10:00:16 GMT\r\n
Action.c(61): Server: lighttpd/1.4.19\r\n
Action.c(61): \r\n
Action.c(61): t=592861ms: 369-byte response body for "http://application/flashservices/gateway.php" (RelFrameId=1, Internal ID=9)
Action.c(61): <?xml version="1.0" encoding="iso-8859-1"?>\n
Action.c(61): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n
Action.c(61): "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n
Action.c(61): <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n
Action.c(61): <head>\n
Action.c(61): <title>500 - Internal Server Error</title>\n
Action.c(61): </head>\n
Action.c(61): <body>\n
Action.c(61): <h1>500 - Internal Server Error</h1>\n
Action.c(61): </body>\n
Action.c(61): </html>\n
Action.c(61): t=592915ms: Closing connection to novitech.oicp.net after receiving status code 500
Action.c(61): t=592916ms: Closed connection to novitech.oicp.net:80 after completing 3 requests
Action.c(61): t=592917ms: Request done "http://application/flashservices/gateway.php"
Action.c(61): Warning: HTTP status code 500 was returned by the server
Action.c(61): Error: Decoding of AMF message failed. Error is : ReadValue Failed due Insufficient data to read at location 6
Action.c(61): There was an error during the flex_remoting_call ("amfphp::saveToBook") :L没人回答?
我也遇到同样的问题了…… 求高手出招…… 只能猜测你发送的flex请求不全服务器返回500错误 测试flex项目需LR9.5.2以上版本,我用的是LR11.
页:
[1]