lr http_get访问webservice

image

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;
}

image

posted @ 2014-12-19 11:59  hotarubi  阅读(210)  评论(0编辑  收藏  举报