hxj407846628 发表于 2014-5-22 15:00:38

大神这边看 Error -26612:URL地址正确的 LOADRUNNER调用是却提示地址错误

该接口通过SOAP可以调通,改用loadrunner调用是提示 调用的URL地址 500错误
请大神帮忙看下 在线等
Action()
{char body;


        web_add_header("sourceDeviceCode","pbs");
        web_add_header("timeStamp","30001010101010");
        web_add_header("authenticatorSource","3c44f8a37088f61513930dac687576649a7b38bb4ca20317ea999ba20efc1d29");
        web_add_header("version","1.0");

        lr_start_transaction("processCTChargeNotifyReq");

strcpy(body,"body=requestData=%3CRequestBody%3E%3CSign%3EOKFLd9YqjFC%2BBA9%2F10DesPvi%2BuysD3569rV%2BDOnqhUl6SDq9Mos9fNaScEX3myTRwHW8xOABmOW2%0Ai1FS1IT%2BVZvq2Qdnvz%2Bu3pXTi52dSWIJgH9vO2TlNQ%3D%3D%3C%2FSign%3E%3CTrade_no%3E2014051410085618394%3C%2FTrade_no%3E%3CTrade_time%3E20140514100907%3C%2FTrade_time%3E%3CTrade_status%3E0%3C%2FTrade_status%3E%3CExtension%3E131000Er000000B000MM00120140514100509100312111%3C%2FExtension%3E%3C%2FRequestBody%3E");

web_reg_save_param("LT",
                "LB=<resultCode>",
                "RB=</resultCode>",
                "Search=All",
                "NotFound=WARNING",
                "SaveLen=1000",
                LAST);
web_set_max_html_param_len("1024");
        web_reg_save_param("FT",
                "LB=",
                "RB=",
                "Search=All",
                "NotFound=WARNING",
                "SaveLen=1000",
                LAST);

        web_custom_request("processCTChargeNotifyReq",
               "Method=POST",
         "Mode=HTML",
             "EncType=text/xml;charset=UTF-8",
         "URL=http://10.46.200.2:8085/pae/xml/ChargeNotifyServices/processCTChargeNotify",
                                          body,
                                           LAST);
web_set_max_html_param_len("1024");

        lr_output_message(lr_eval_string("{LT}"));
        //lr_output_message(lr_eval_string("{FT}"));

    if(strcmp("0",lr_eval_string("{LT}")) == 0)
    {
      lr_output_message("Success!!!");

      lr_end_transaction("processCTChargeNotifyReq", LR_AUTO);

                web_cache_cleanup();
                web_cleanup_cookies();
    }else
        {
                lr_error_message("---------Failed!!!%s",lr_eval_string("{FT}"));

      lr_end_transaction("processCTChargeNotifyReq", LR_FAIL);

        }
        return 0;

}




Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(10): Notify: Transaction "processCTChargeNotifyReq" started.
Action.c(14): Registering web_reg_save_param was successful       
Action.c(21): web_set_max_html_param_len was successful       
Action.c(22): Registering web_reg_save_param was successful       
Action.c(29): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://10.46.200.2:8085/pae/xml/ChargeNotifyServices/processCTChargeNotify"       
Action.c(29): Warning -27118: SaveOffset (0) plus SaveLen (1000) exceeds the found value length (235) for parameter "FT". SaveLen=235 is used       
Action.c(29): Warning -26377: No match found for the requested parameter "LT". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size       
Action.c(29): web_custom_request("processCTChargeNotifyReq") highest severity level was "ERROR", 69 body bytes, 166 header bytes       
Action.c(29): Notify: Transaction "processCTChargeNotifyReq" ended with "Fail" status (Duration: 0.5937 Wasted Time: 0.4664).
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
页: [1]
查看完整版本: 大神这边看 Error -26612:URL地址正确的 LOADRUNNER调用是却提示地址错误