PHP-EWS错误:无法绑定到服务

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?

Since you've downloaded the services.wsdl from your exchange server, you'll have to modify it.

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>