问答详情
源自:2-3 用cURL调用WebService获取天气信息

代码URL

路径中的这个地址“/WebServices/WeatherWebService.asmx/getWeatherbyCityName”

是根据什么得到的。

网站的上POST的请求地址为:“

POST /WebServices/WeatherWS.asmx/getWeather HTTP/1.1
Host: www.webxml.com.cn
Content-Type: application/x-www-form-urlencoded
Content-Length: lengththeCityCode=string&theUserID=string

我用的是PHP扩展做的,

按照课程的代码输入完成后浏览器显示“未将对象引用设置到对象的实例


提问者:PeterTu 2014-10-06 13:04

个回答

  • 周末_1991
    2015-06-15 17:30:37

    http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?op=getWeatherbyCityName

  • 小鱼典典
    2014-10-08 18:36:44

    是付费的原因么