Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing WSDL issues with 'Advanced' Installation #9

Open
opfeffer opened this issue Aug 6, 2012 · 6 comments
Open

Parsing WSDL issues with 'Advanced' Installation #9

opfeffer opened this issue Aug 6, 2012 · 6 comments

Comments

@opfeffer
Copy link

opfeffer commented Aug 6, 2012

Hey!

I've been trying to get this library working with my Exchange Server 2007. Unfortunately the basic installation didn't do anything for me. While the advanced installation got me a little further, I'm still having trouble and would appreciate any guidance. I saved the three files in the lib/ directory but running init() throws an error saying 'cannot load external entity'. If I hardcode the path 'http://localhost/lib/Services.wsdl' in ExchangeClient.php. I get the message:
'Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: 'ExchangeServices' already defined in ...'

Even though I definitely only posted the additional stuff only once and it's not in there a second time!

Can you help me out?
Thanks!!

// Edit: Actually, I was able to get it to work by putting the absolute filesystem path. However, now I'm getting a 401.2 HTTP error. Any clue why that's happening?

@hatsuseno
Copy link

Yeah, I can see how this setup fails to work for you. When I was patching up some code on this project I modified the ExchangeNTLMStream.php to automatically add the ExchangeServices XML block to any Services.wsdl file loaded over HTTP with NTLM authentication. Could you try loading without the ExchangeServices XML added to your locally stored wsdl?

@hatsuseno
Copy link

Thinking about it, I most likely broke loading WSDL locally feature, same for any Exchange server that does add the ExchangeServices wsdl:service tag, I should check the loaded XML for this tag before injecting my own guesstimation.

@ifuyivara
Copy link

I'm having the same issue, I'm getting:

PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'Services.wsdl' : failed to load external entity "Services.wsdl"

Any updates on this? Is there some way we can revert the patch that introduced this issue?

@IgnitedCoder
Copy link

I'm having the same issue, I'm getting:

PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'Services.wsdl' : failed to load external entity "Services.wsdl"

@speedygonzales77
Copy link

Same here:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'Services.wsdl' : failed to load external entity "Services.wsdl" in E:\mypath\exchange\webmail\lib\NTLMSoapClient.php:8 Stack trace: #0 E:\mypath\exchange\webmail\lib\NTLMSoapClient.php(8): SoapClient->SoapClient('Services.wsdl', Array) #1 E:\mypath\exchange\webmail\lib\ExchangeClient.php(48): NTLMSoapClient->__construct('Services.wsdl', Array) #2 E:\mypath\exchange\webmail\test.php(12): ExchangeClient->init('myusername', 'mypassword') #3 {main} thrown in E:\mypath\exchange\webmail\lib\NTLMSoapClient.php on line 8

@bren1818
Copy link

Try this - open up ExchangeClient.php and go to line 37. Set the $this->wsdl = getcwd().DIRECTORY_SEPARATOR."lib".DIRECTORY_SEPARATOR."Services.wsdl";

See if that works, it looked to be a pathing issue for me, likely because I was running this out of a sub folder versus a dedicated vhost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants