【发布时间】:2013-03-05 08:47:26
【问题描述】:
我正在使用 PHP 中的 SoapServer 开发 Web 服务。以前,我使用完全相同的技术制作了另一个 Web 服务。我的新项目在同一台服务器上,但在另一个子目录中。 在服务和soapserver 的url 中包含一个版本号。 这是我在 PHP 中创建 SoapServer 的方式:
$server = new SoapServer("https://".DOMAIN."/webservice/index.php?v=1.0.0&wsdl=1");
$server->setClass('SoapHandler');
$server->handle();
整个 PHP 页面在我的示例 Soap Service 中是相同的,当然只是 url 不同。 当我使用soapUI 调用webservice 时,返回以下错误:
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://myurl.com/webservice/index.php?v=1.0.0&wsdl=1' : failed to load external entity "https://myurl.com/webservice/index.php?v=1.0.0&wsdl=1"
如您所见,与号被替换为&。我尝试将编码更改为UTF-8,这也不起作用。
谁能帮帮我?
【问题讨论】:
标签: php soap soapserver