首页 > 代码库 > lr http_get访问webservice

lr http_get访问webservice

技术分享

Action()
{

    web_reg_save_param("Response","LB=","RB=",LAST);
    web_url("getweather",
            "URL=http://webservice.webxml.com.cn/WebServices/WeatherWS.asmx/getWeather?theCityCode=3409&theUserID=",
            //"Host=webservice.webxml.com.cn",
            LAST);

    lr_convert_string_encoding(lr_eval_string("{Response}"),LR_ENC_UTF8,LR_ENC_SYSTEM_LOCALE,"ResponseUTF8");
    lr_output_message("Response is : %s",lr_eval_string("{ResponseUTF8}"));

    return 0;
}

技术分享

lr http_get访问webservice