Warning: SoapClient::SoapClient(): failed to open stream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Guys,
I've been pulling my hair out with this one. 
I have no problems with connecting to an external wdsl file if i run php php
script via command line.

php -f results.php kw=test

	$searchClient = new SoapClient(constant("WEBSERVICE_URL"));


But if i run it within a script called from IIS 6.0 web server running on
local host I get the following errors.
I've looked at permissions on MSXML*.dll files, I've looked into web
services.
Everything checks out, the remote location has the file.
I can't test it out using the FQDN on my local machine as PHP has a DNS
problem as well.

Warning:
SoapClient::SoapClient(http://194.247.95.140/kmsearchengine/search.asmx?WSDL):
failed to open stream: No such file or directory in
D:\Inetpub\eskills\cgi-bin\templates\phpsearch\results.php on line 10
Warning: SoapClient::SoapClient(): I/O warning : failed to load external
entity "http://194.247.95.140/kmsearchengine/search.asmx?WSDL"; in
D:\Inetpub\eskills\cgi-bin\templates\phpsearch\results.php on line 10
object(SoapFault)#2 (8) { ["message:protected"]=> string(100) "SOAP-ERROR:
Parsing WSDL: Couldn't load from
'http://194.247.95.140/kmsearchengine/search.asmx?WSDL'"
["string:private"]=> string(0) "" ["code:protected"]=> int(0)
["file:protected"]=> string(58)
"D:\Inetpub\eskills\cgi-bin\templates\phpsearch\results.php"
["line:protected"]=> int(10) ["trace:private"]=> array(1) { [0]=> array(6) {
["file"]=> string(58)
"D:\Inetpub\eskills\cgi-bin\templates\phpsearch\results.php" ["line"]=>
int(10) ["function"]=> string(10) "SoapClient" ["class"]=> string(10)
"SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=>
string(53) "http://194.247.95.140/kmsearchengine/search.asmx?WSDL"; [1]=>
array(1) { ["wsdl"]=> bool(true) } } } } ["faultstring"]=> string(100)
"SOAP-ERROR: Parsing WSDL: Couldn't load from
'http://194.247.95.140/kmsearchengine/search.asmx?WSDL'" ["faultcode"]=>
string(4) "WSDL" } NULL Fatal error: Call to a member function Search() on a
non-object in results.php on line 50 

-- 
View this message in context: http://www.nabble.com/Warning%3A-SoapClient%3A%3ASoapClient%28%29%3A-failed-to-open-stream-tf3212686.html#a8921736
Sent from the Php - Soap mailing list archive at Nabble.com.

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux