SBX - Search With Button

SBX - Forum Post Title

SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://{IP}:{PORT}/TEST/WS/SystemService' : failed to load external entity - PHP - MS Navision

Microsoft Dynamics NAV Forum

AidaG asked a question on 11 Jan 2019 7:24 AM

Question Status

Suggested Answer

Hello,

I have SOAP web services URLs to do CRUD (create/read/update/delete) operations with the data, but can't access none of them via PHP. I used following article for a guide, doing same as described there:

<?php
$soapWsdl = 'http://{IP}:{PORT}/TEST/WS/SystemService';
try {
    $options = [
        'cache_wsdl' => 0,
        'trace' => 1,
        'stream_context' => stream_context_create(array(
            'ssl' => array(
                'verify_peer' => false,
                'verify_peer_name' => false,
                'allow_self_signed' => true
            )
        )),
        'proxy_host' => "{MY SERVER IP WHICH WAS WHITELISTED}",
        'soap_version' => SOAP_1_1,
        'connection_timeout' => 120,
        'login' => 'username',
        'password' => 'password',
    ];
    $client = new SoapClient($soapWsdl, $options);
    $result = $client->Companies();
    print_r($result);
}
catch (Exception $e){
    echo $e->getMessage();
}
?>

but I still see following error:

SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://{IP}:{PORT}/TEST/WS/SystemService' : failed to load external entity "http://{IP}:{PORT}/TEST/WS/SystemService"

 

Services are running in a browser. I also tried to enable NTLM Authentication for using NTLMSoapClient but no luck. Tried so many other variants but still see "Connection timeout" error. What's going on please? I need urgent help on this matter. Can someone help me to figure this out?

Thanks

Reply
Suresh Kulla responded on 11 Jan 2019 4:12 PM
My Badges
Suggested Answer

Did you try to load them using SOAP UI or PostMan ?

Reply
AidaG responded on 14 Jan 2019 6:24 AM

Hi Suresh,

Yes I tried with Postman, but couldn't see any result back. I even added credentials and the proxy server IP address which was whitelisted but still nothing.

So far, I could load only via Chrome extension named "Wizdler". I can send and receive back the data very easily.

Any ideas please?

Thanks

Reply
Suresh Kulla responded on 11 Jan 2019 4:12 PM
My Badges
Suggested Answer

Did you try to load them using SOAP UI or PostMan ?

Reply

SBX - Two Col Forum

SBX - Migrated JS