首页 > Web开发 > 详细

lr http请求访问webservice—soap_request

时间:2014-12-18 20:13:14      阅读:522      评论:0      收藏:0      [点我收藏+]

Action()
    {
         web_add_header("SOAPAction", "http://WebXml.com.cn/getWeather");
         soap_request("StepName=Sample Soap Request",
                      "URL=http://webservice.webxml.com.cn/WebServices/WeatherWS.asmx",
                      "SOAPEnvelope= "
                      "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:web=\"http://WebXml.com.cn/\">\n"
                      "   <soapenv:Header/>\n"
                      "   <soapenv:Body>\n"
                      "      <web:getWeather>\n"
                      "         <!--Optional:-->\n"
                      "         <web:theCityCode>792</web:theCityCode>\n"
                      "         <!--Optional:-->\n"
                      "         <web:theUserID></web:theUserID>\n"
                      "      </web:getWeather>\n"
                      "   </soapenv:Body>\n"
                      "</soapenv:Envelope>",
                      LAST);

待续!!!!!!!


     /*
    lr_xml_get_values("XML={Response_Xml}",
              "ValueParam=Author_Name",
              "Query=/books/book/author",
              LAST);
         lr_output_message(lr_eval_string("Author is = {Author_Name}"));
         if(strcmp(lr_eval_string("{Author_Name}"),"John Smith") == 0)
         {
            lr_end_transaction("AUTHOR", LR_PASS);
         }
         else
         {
            lr_end_transaction("AUTHOR", LR_FAIL);
         }
     */
         return 0;
    }

lr http请求访问webservice—soap_request

原文:http://www.cnblogs.com/stay-sober/p/4172372.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!