Hi,
I am trying to connect to an Exchange Server 2007 web services using SOAP XML through PHP. My PHP info is (if additional info is need, let me know):
Version 5.2.5
Running it off a Windows server
Using the Soap XML extension (php_soap.dll) that comes with PHP (if there is a better one I am open to that, as long as its free)
Code I am using currently:
try {
$soap_client_url = "https://<URL>.wsdl";
$client = new SoapClient( $soap_client_url,
array(
"login" => '<login>',
"password" => '<password>',
"domain" => '<domain>'
)
);
} catch (SoapFault $soapFault) {
echo $soapFault;
}
When I try to connect to the Exchange Server I get the below error:
SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't bind to service in <path>.php:55 Stack trace: #0 <path>.php(55): SoapClient->SoapClient('https://<url>...', Array) #1 {main}
I did research on this error and only found one reference, which stated I should update/fix the wsdl, but it is not my wsdl, it is Exchange’s. I am thinking I am missing a parameter to send to Exchange, but I am unsure what to send. I am new with SOAP and Exchange, and passing familiarity with XML. I appreciate any help.
Thanks,
Bosco