首页 > 解决方案 > PHP 中的 SOAP Web 服务 API

问题描述

我正在尝试使用 PHP 中的 Web 服务询问 SOAP API:

Web 服务仅列出可用的数据集以及这些数据集包含的字段。Web 服务不接受任何参数,但需要身份验证。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:v0="http://www.weatherservice.com/service/infrastructure/search/v0-1">;
   <soapenv:Header>
      <v0:HeaderLogin>
         <username>johnsmith</username>
         <password>secretpassword</password>
      </v0:HeaderLogin>
   </soapenv:Header>
   <soapenv:Body>
     <v0:listdatasets/>
   </soapenv:Body>
</soapenv:Envelope>

我不知道从哪里开始 tbh,任何帮助将不胜感激。

标签: phpweb-serviceswebsoap

解决方案


推荐阅读