getProxy For Nusoap not working |
|
Hello all,
After backtracking and looking through the nusoap classes. It seems like the true error has to do with access to the WSDL file. I printed out some echos and the error that occurs before anything else is the following: HTTP ERROR: Couldn't open socket connection to server http://mywebserver?WSDL. Again, I am using the same nusoap classes as my home machine however the machine at work is receiving this time out error! Does anyone know if certain port has to be open? Or can there be a security issue at my job that my be blocking access the server hosting the WSDL file? I thought we were just using regular http requests? Any help would be appreciated. |
||||||||||||
|
|
Hi,
i have today exactly the same problem. I use my script 3 weeks without problems, but today i look my site and i become same error like DoubleAce3.
Whats the problem?? 3 weeks works very well and now nothing. I need help! Seopop |
||||||||||||||
|
Site Admin
|
you may try to debugger the code. Everything is opensource and I think you can find yourself pretty fast what's up there.
Alternatively, you may publish your Soap server and client sources and we will check when we find time for this. |
||||||||||||
|
|
Hi ddmitrie,
here is the output from Debug:
Is this a problem from firewall? But port 80 is open on my firewall. he cant open socket connection. Its new for me. Can you help me please. Seopop |
||||||||||||||
|
Site Admin
|
It looks like your php has no access to the internet.
"Couldn't open socket connection to server" is the point where php was rejected. Check your local firewall settings.
There are many firewalls out there that are application-specific and what is allowed to one is not allowed to another. Check settings. |
||||||||||||||
|
Found a solution |
|
I've received this error myself, and found that the problem was caused by the CURL extension for PHP not being installed and enabled on the server.
That made NuSOAP not being able to fetch the WSDL correctly over a https connection. Enable CURL and see what happens, it should make it work |
||||||||||||
|
Site Admin
|
I think cURL won't help b'ze URL is not https:
2006-07-27 11:45:50.699263 wsdl: initial wsdl URL: http://mywebserver/pdws/ProductDataV1.asmx?WSDL |
||||||||||||
|
Same here |
|
On http://127.0.0.1/v10/users/index.php:
Parse error: syntax error, unexpected T_STRING in C:\Program Files\Apache Group\Apache2\htdocs\v10\users\inc\nusoap.php(6983) : eval()'d code on line 1 Fatal error: Class 'soap_proxy_21563' not found in C:\Program Files\Apache Group\Apache2\htdocs\v10\users\inc\nusoap.php(6985) : eval()'d code on line 1 On a staging machine without strict warnings i only get this one on a blank page: Fatal error: Class 'soap_proxy_1808533007' not found in /home/cees/ClickVideo/v10/users/inc/nusoap.php(6985) : eval()'d code on line 1 I've had such a month ago, and it just went away. Since a few days it's permanent. |
||||||||||||
|
|
Restarting Apache helped in both cases!
$ sudo /etc/init.d/apache2 restart Forcing reload of web server: Apache2[Wed Aug 09 10:46:48 2006] [warn] module php5_module is already loaded, skipping apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [Wed Aug 09 10:46:49 2006] [warn] module php5_module is already loaded, skipping apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName . |
||||||||||||
|
Site Admin
|
I'd recommend you not to use GetProxy until you're pretty sure that you need it.
Without proxy you can call with soapclient::call method and performace is nearly the same. Also should be emphasized that while GetProxy looks as an elegant way, soapclient::call is more flexible and powerfull as it supports many different ways on running soap calls. |
||||||||||||
|
|
http://www.php-editors.com/php_manual/function.soap-soapclient-call.html says __call() is deprecated.
http://www.php-editors.com/php_manual/function.soap-soapclient-soapcall.html says that i can use methods instead of parameters if in WSDL mode. I say $client = new soapclient( $wsdl , 'wsdl' ); so i assume that is the case, yet without using a proxy, it complains about the soapclient methods not being defined. They are in the WSDL and do work when using a proxy. |
||||||||||||
|
getProxy For Nusoap not working |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by