wsdl地址:http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?op=getWeatherbyCityName
soap:
SOAP 1.1
以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。
POST /WebServices/WeatherWebService.asmx HTTP/1.1
Host: www.webxml.com.cn
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://WebXml.com.cn/getWeatherbyCityName"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getWeatherbyCityName xmlns="http://WebXml.com.cn/">
<theCityName>string</theCityName>
</getWeatherbyCityName>
</soap:Body>
</soap:Envelope>
HTTP/1.1

本文介绍了如何通过调用Web服务接口获取天气预报信息,具体示例中展示了调用getWeatherbyCityName方法查询南京天气的过程。
最低0.47元/天 解锁文章
1347

被折叠的 条评论
为什么被折叠?



