来自请求的空WSDL响应

时间:2019-01-17 15:52:23

标签: php api wsdl asmx

因此,我已经收到带有用户名/密码凭证的WSDL链接。 我创建了一个php网站,我认为它使用给定的用户名和密码从WSDL请求结果。

但是,我的网站是空白的。

HTML:

<head><meta charset="utf-8" />
<title>Testing wsdl</title>
</head>
<body>

<?php 

$options = array(
     'hid denwith a space\username1' => $userName,
     'pass#word' => $password,
);

    $client = new SoapClient("https://online.infracontrol.com/Areas/Parking/Services/V1/ParkingInfo.asmx?wsdl", array('soap_version' => SOAP_1_2));
    $result = $client('ListSites', $options);
?>

    </body>
</html> 

PHP代码基于给定的信息,如下所示:

POST /Areas/Parking/Services/V1/ParkingInfo.asmx HTTP/1.1
Host: online.infracontrol.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <ListSites xmlns="http://tempuri.org/">
      <userName>string</userName>
      <password>string</password>
    </ListSites>
  </soap12:Body>
</soap12:Envelope>

但是为什么我的网站更新后却是空的?

如何将结果用作地图数据?

0 个答案:

没有答案