Ty44ler Posted January 6, 2010 Share Posted January 6, 2010 I have a web service that a co worker of mine wrote. I'm trying to connect to it and use the data from it to display selections in a selection box. It doesn't connect to the service though. The WSDL file has been created and can be displayed in the browser: http://sqlsvr1/RefrigerantComplianceService/Service1.WSDL Here's my code: $client = new SoapClient("http://sqlsvr1/RefrigerantComplianceService/Service1.WSDL"); $result = $client->GetJobs(); It brings up all kinds of errors: Warning: SoapClient::SoapClient() [soapclient.soapclient]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\My Dropbox\compliance\tester2.php on line 4 Warning: SoapClient::SoapClient(http://sqlsvr1/RefrigerantComplianceService/Service1.WSDL) [soapclient.soapclient]: failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\My Dropbox\compliance\tester2.php on line 4 Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning : failed to load external entity "http://sqlsvr1/RefrigerantComplianceService/Service1.WSDL" in C:\EDITED\EDITED\tester2.php on line 4 Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://sqlsvr1/RefrigerantComplianceService/Service1.WSDL' : failed to load external entity "http://sqlsvr1/RefrigerantComplianceService/Service1.WSDL" in C:\EDITED\tester2.php:4 Stack trace: #0 C:\EDITED\EDITED\tester2.php(4): SoapClient->SoapClient('http://sqlsvr1/...') #1 {main} thrown in C:\EDITED\tester2.php on line 4 What is going on here? I tried connecting to other public web services like amazon and it works without error. Also have PHP5 and SOAP installed. Link to comment https://forums.phpfreaks.com/topic/187439-soap-to-call-xml-file-bringing-errors/ Share on other sites More sharing options...
abazoskib Posted January 6, 2010 Share Posted January 6, 2010 That WSDL actually does not load in my browser. Link to comment https://forums.phpfreaks.com/topic/187439-soap-to-call-xml-file-bringing-errors/#findComment-989836 Share on other sites More sharing options...
Ty44ler Posted January 6, 2010 Author Share Posted January 6, 2010 That WSDL actually does not load in my browser. Ahhh... that actually helps! I made a big oversight and didn't even realize that our web server is not on the same network as the sql server with the data, so that makes sense I'm able to connect to it since I'm on the network, but not everyone else! I'll fix this and post back shortly. Link to comment https://forums.phpfreaks.com/topic/187439-soap-to-call-xml-file-bringing-errors/#findComment-989850 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.