PHP & NAV 2013: Start tag expected, '<' not found

Hi,

We are trying to connet to Dynamic NAV 2013 through PHP, but get the following error:

SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn’t load from ‘localhost:7047/…/SystemService’ : Start tag expected, ‘<’ not found in C:\htdocs\soap_verify.php:50 Stack trace: #0 C:\htdocs\soap_verify.php(50): SoapClient->SoapClient(‘http://localhos…’) #1 {main}

Please give us any ideas what could be the issue here.

Thanks,

Antanaz

The error occurs when the following command is executed:

try{

$baseURL = “http://localhost:7047/DynamicsNAV70/WS/

$client = new NTLMSoapClient($baseURL.‘SystemService’);

}

Please give me some insights.

Thanks,

Antanaz

Please follow this post, I think can be useful for your problem: http://thomas.rabaix.net/blog/2008/03/using-soap-php-with-ntlm-authentication

Please follow this post, can be useful for your problem: http://thomas.rabaix.net/blog/2008/03/using-soap-php-with-ntlm-authentication

I am attaching the files NTLMSoapClient.php & NTLMStream.php. This code works with NAV 2009, but not with 2013.

Any ideas how to make it work?

Thanks,

Antanaz

I have the same problem, have you got the solution?

Tanks,

Marc

Same error here with Nav 2013 R2. Tried some stuff like enable NTLM un the nav server administration tool and trim the $response call, but no luck.

We still have this problem.

I have the same Problem. Did you solve the Problem?