I'm trying to connect to a web service using PHP's soap client which I can successfully do using Visual Studio, pressing F5 and running the page locally which works a treat.
As soon as I upload the exact same file to my apache web host, I keep getting the error: "failed to load external entity".
Here's my code with the credentials and url taken out...
$soapclient = new SoapClient('http://example.com');
$params = array ('SystemID' => 'testID','Username' => 'test', 'Password' => 'test');
$response = $soapclient->GetEngineerList($params);
strings are not read twice and parsed in single quotes
$soapclient = new SoapClient('$url');
$soapclient = new SoapClient($url);
also...do you have $url = ''; anywhere?
please try using basic auth to get to your wsdl:
$login = 'bert'; $password = 'berts password'; $client = new SoapClient( 'http://' . urlencode($login) . ':' . urlencode($password) . '@www.server.com/path/to/wsdl', array( 'login' => $login, 'password' => $password ) );