PHP-EWS错误:无法绑定到服务 [英] PHP-EWS Error: Couldn't bind to service
问题描述
当我尝试使用php-ews进行任何调用时,出现"SOAP错误:解析WSDL:无法绑定到服务".我已将Exchange实例中的services.wsdl,messages.xsd和types.xsd文件复制到本地ews/wsdl目录中,并且在其中明确定义了服务,并且我使用的是正确的版本(ExchangeWebServices :: VERSION_2007_SP1).有什么想法吗?
I'm getting "SOAP-ERROR: Parsing WSDL: Couldn't bind to service in" when I try to make any call using php-ews. I've copied the services.wsdl, messages.xsd, and types.xsd files from my Exchange instance into my local ews/wsdl directory and the service is clearly defined in it and I'm using the correct version (ExchangeWebServices::VERSION_2007_SP1). Any ideas?
推荐答案
由于已经从交换服务器下载了services.wsdl,因此必须对其进行修改.
Since you've downloaded the services.wsdl from your exchange server, you'll have to modify it.
在结束标记(wsdl:definitions)之前添加:
Before the closing tag (wsdl:definitions) add:
...
<wsdl:service name="ExchangeServices">
<wsdl:port name="ExchangeServicePort" binding="tns:ExchangeServiceBinding">
<soap:address location="https://path.to.your.exchange.server/EWS/Exchange.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
这篇关于PHP-EWS错误:无法绑定到服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!