lyaozhen 发表于 2012-9-18 17:15:44

关联问题

已经将变量进行关联,在回放脚本还是有错误:Action.c(76): Error: Server returned error for message #1 : description="AMF call returned an error, described in XML seen in extended log" ,该错误出现在amf_call("AMF3_call_1",这段脚本中
下面是脚本,请高手帮忙看看
Action()
{

        web_add_auto_header("x-flash-version",
                "11,4,402,265");
        amf_call(
                "AMF3_call",
                "Gateway=http://192.168.1.33/iFormRo1/Gateway.aspx",
                "Snapshot=t3.inf",
                MESSAGE,
                "Method=null",
                "TargetObjectId=/1",
                BEGIN_ARGUMENTS,
                "<AMF3><object><object-class className="
                "\"flex.messaging.messages.CommandMessage\"><object-class-member memberName="
                "\"operation\"/><object-class-member memberName=\"correlationId\"/>"
                "<object-class-member memberName=\"timeToLive\"/><object-class-member memberName="
                "\"messageId\"/><object-class-member memberName=\"headers\"/>"
                "<object-class-member memberName=\"timestamp\"/><object-class-member memberName="
                "\"clientId\"/><object-class-member memberName=\"body\"/><object-class-member "
                "memberName=\"destination\"/></object-class><object-content><object-member "
                "memberName=\"operation\"><integer>5</integer></object-member><object-member "
                "memberName=\"correlationId\"><string/></object-member><object-member memberName="
                "\"timeToLive\"><integer>0</integer></object-member><object-member memberName="
                "\"messageId\"><string>2C8E38BE-4286-067D-8337-D2B78D9E4385</string>"
                "</object-member><object-member memberName=\"headers\"><object><object-class "
                "className=\"\"/><object-content/><object-dynamic-content><object-dynamic-member "
                "dynamicMemberName=\"DSId\"><string>nil</string></object-dynamic-member>"
                "<object-dynamic-member dynamicMemberName=\"DSMessagingVersion\"><integer>"
                "1</integer></object-dynamic-member></object-dynamic-content></object>"
                "</object-member><object-member memberName=\"timestamp\"><integer>0</integer>"
                "</object-member><object-member memberName=\"clientId\"><null/></object-member>"
                "<object-member memberName=\"body\"><object><object-class className=\"\"/>"
                "<object-content/></object></object-member><object-member memberName="
                "\"destination\"><string/></object-member></object-content></object></AMF3>",
                END_ARGUMENTS,
                LAST);

        web_reg_save_param("messageID",
                "LB=headers\x06I",
                "RB=\x06I",
                "Search=Noresource",
                LAST);

        web_reg_save_param("DSID",
                "LB=DSId\x06A",
                "RB=\x01",
                "Search=Noresource",
                LAST);

        web_custom_request("Gateway.aspx_2",
                "URL=http://192.168.1.33/iFormRo1/Gateway.aspx",
                "Method=POST",
                "Resource=0",
                "RecContentType=application/x-amf",
                "Referer=app:/iForm6.swf/[]/5",
                "Snapshot=t4.inf",
                "Mode=HTML",
                "EncType=application/x-amf",
                "BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/2\\x00\\x00\\x01;\n"
                "\\x00\\x00\\x00\\x01\\x11\n"
                "\\x81\\x13Oflex.messaging.messages.RemotingMessage\\x13operation\rsource\\x15timeToLive\\x13messageId\\x0Fheaders\\x13timestamp\\x11clientId\tbody\\x17destination\\x06)ValidFlexUserFromCIT\\x06MZoom.iFormROServer.iFormROLoginService\\x04\\x00\\x06I57A904A1-B35B-287A-6570-D2B78D8E3047\n"
                "\\x0B\\x01\tDSId\\x06A33a2729983784596b98b890d84179a23\\x15DSEndpoint\\x01\\x01\\x04\\x00\\x01\t\\x05\\x01\\x06\tzoom\\x06\r111111\\x06\\x0Blogin",
                LAST);

       

        amf_call(
                "AMF3_call_1",
                "Gateway=http://192.168.1.33/iFormRo1/Gateway.aspx",
                "Snapshot=t5.inf",
                MESSAGE,
                "Method=null",
                "TargetObjectId=/1",
                BEGIN_ARGUMENTS,
                "<AMF3><object><object-class className="
                "\"flex.messaging.messages.CommandMessage\"><object-class-member memberName="
                "\"operation\"/><object-class-member memberName=\"correlationId\"/>"
                "<object-class-member memberName=\"timeToLive\"/><object-class-member memberName="
                "\"messageId\"/><object-class-member memberName=\"headers\"/>"
                "<object-class-member memberName=\"timestamp\"/><object-class-member memberName="
                "\"clientId\"/><object-class-member memberName=\"body\"/><object-class-member "
                "memberName=\"destination\"/></object-class><object-content><object-member "
                "memberName=\"operation\"><integer>8</integer></object-member><object-member "
                "memberName=\"correlationId\"><string/></object-member><object-member memberName="
                "\"timeToLive\"><integer>0</integer></object-member><object-member memberName="
                "\"messageId\"><string>{messageID}</string>"
                "</object-member><object-member memberName=\"headers\"><object><object-class "
                "className=\"\"/><object-content/><object-dynamic-content><object-dynamic-member "
                "dynamicMemberName=\"DSId\"><string>{DSID}</string>"
                "</object-dynamic-member><object-dynamic-member dynamicMemberName="
                "\"DSMessagingVersion\"><integer>1</integer></object-dynamic-member>"
                "</object-dynamic-content></object></object-member><object-member memberName="
                "\"timestamp\"><integer>0</integer></object-member><object-member memberName="
                "\"clientId\"><null/></object-member><object-member memberName=\"body\"><string>"
                "OTM1NGU0ZjAtMzBlNy00MDVmLWEyYTktNWJhYjA3ODgwZThhOjkzNTRlNGYwLTMwZTctNDA1Zi1h\nMm"
                "E5LTViYWIwNzg4MGU4YQ==</string></object-member><object-member memberName="
                "\"destination\"><string/></object-member></object-content></object></AMF3>",
                END_ARGUMENTS,
                LAST);

        amf_call(
                "fluorine::GetUserConfigXml",
                "Gateway=http://192.168.1.33/iFormRo1/Gateway.aspx",
                "Snapshot=t7.inf",
                MESSAGE,
                "Method=null",
                "TargetObjectId=/2",
                BEGIN_ARGUMENTS,
                "<AMF3><object><object-class className="
                "\"flex.messaging.messages.RemotingMessage\"><object-class-member memberName="
                "\"operation\"/><object-class-member memberName=\"source\"/><object-class-member "
                "memberName=\"timeToLive\"/><object-class-member memberName=\"messageId\"/>"
                "<object-class-member memberName=\"headers\"/><object-class-member memberName="
                "\"timestamp\"/><object-class-member memberName=\"clientId\"/>"
                "<object-class-member memberName=\"body\"/><object-class-member memberName="
                "\"destination\"/></object-class><object-content><object-member memberName="
                "\"operation\"><string>GetUserConfigXml</string></object-member><object-member "
                "memberName=\"source\"><string>Zoom.iFormROServer.iFormRO</string>"
                "</object-member><object-member memberName=\"timeToLive\"><integer>0</integer>"
                "</object-member><object-member memberName=\"messageId\"><string>"
                "0027972E-727B-493E-E442-D2B79CE0027A</string></object-member><object-member "
                "memberName=\"headers\"><object><object-class className=\"\"/><object-content/>"
                "<object-dynamic-content><object-dynamic-member dynamicMemberName=\"DSId\">"
                "<string>33a2729983784596b98b890d84179a23</string></object-dynamic-member>"
                "<object-dynamic-member dynamicMemberName=\"DSEndpoint\"><null/>"
                "</object-dynamic-member></object-dynamic-content></object></object-member>"
                "<object-member memberName=\"timestamp\"><integer>0</integer></object-member>"
                "<object-member memberName=\"clientId\"><null/></object-member><object-member "
                "memberName=\"body\"><array arrayLength=\"2\"><array-members-part><array-member>"
                "<integer>1</integer></array-member><array-member><integer>1</integer>"
                "</array-member></array-members-part></array></object-member><object-member "
                "memberName=\"destination\"><string>fluorine</string></object-member>"
                "</object-content></object></AMF3>",
                END_ARGUMENTS,
                LAST);

云层 发表于 2012-9-18 17:32:20

amf的关联不是这样做的。。
页: [1]
查看完整版本: 关联问题