 |
 | getProxy For Nusoap not working |  |
Joined: 30 Jun 2006 |
Posts: 10 |
|
|
 |
Posted: Tue Jul 04, 2006 2:20 pm |
|
 |
 |
 |
 |
Hello all,
I am receiving the following error when using the getProxy function:
Parse error: parse error, unexpected T_STRING in /home/oracle/infr/lib/php/nusoap.php(6983) : eval()'d code on line 1
Fatal error: Cannot instantiate non-existent class: soap_proxy_484983192 in /home/oracle/infr/lib/php/nusoap.php(6985) : eval()'d code on line 1
This is the code that I am using:
// Define needed parameters and put them in an array..
$parameters = array(
'v_state' => 'NJ',
'v_city' => 'Haledon',
);
// Define new object and specify location of wsdl file.
$soapclient = new soapclient('http://myserver',true);
$proxy = $soapclient->getProxy();
$err = $soapclient->getError();
if ($err) {
// Display the error
$answer = 'Constructor error ' . $err;
} else {
// call the method and get the result.
/* $result = $soapclient->call('GetData',$parameters,'http://myserver');*/
$result = $proxy->GetData($parameters);
// Display the request and response
echo '<h2>Request</h2>';
echo '<pre>' . htmlspecialchars($proxy->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2>';
echo '<pre>' . htmlspecialchars($proxy->response, ENT_QUOTES) . '</pre>';
I have used this code on my server machine at home and it is working fine. It's on my machine at work where this error is occuring for some reason.
im not sure why this error is occuring since i am using the same php classes as my server machine at home. Has anyone run into an issue like this while using the getProxy function? Any help would be appreciated. Thanks.
|
|
 |
 | |  |
 |
 | |  |
Joined: 26 Jul 2006 |
Posts: 2 |
|
|
 |
Posted: Tue Jul 25, 2006 7:43 pm |
|
 |
 |
 |
 |
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.
Parse error: parse error, unexpected T_STRING in
.../NUSOAP/nusoap.php(6984) : eval()'d code on line 1
Fatal error: Cannot instantiate non-existent class: nusoap_proxy_1915658937 in
.../NUSOAP/nusoap.php(6986) : eval()'d code on line 1
|
Whats the problem??
3 weeks works very well and now nothing.
I need help!
Seopop
|
|
 |
 | |  |
 |
 | |  |
Joined: 26 Jul 2006 |
Posts: 2 |
|
|
 |
Posted: Wed Jul 26, 2006 5:19 am |
|
 |
 |
 |
 |
Hi ddmitrie,
here is the output from Debug:
Debug
2006-07-27 12:06:25.543110 nusoapclient: existing wsdl instance created from http://mywebserver/pdws/ProductDataV1.asmx?WSDL
2006-07-27 11:45:50.699263 wsdl: initial wsdl URL: http://mywebserver/pdws/ProductDataV1.asmx?WSDL
2006-07-27 11:45:50.699405 wsdl: getting WSDL http(s) URL http://mywebserver/pdws/ProductDataV1.asmx?WSDL
2006-07-27 11:45:50.699546 soap_transport_http: scheme = http
2006-07-27 11:45:50.699619 soap_transport_http: host = webservices.affili.net
2006-07-27 11:45:50.699678 soap_transport_http: path = /pdws/ProductDataV1.asmx
2006-07-27 11:45:50.699737 soap_transport_http: query = WSDL
2006-07-27 11:45:50.699807 soap_transport_http: set Host: webservices.affili.net
2006-07-27 11:45:50.699908 soap_transport_http: set User-Agent: NuSOAP/0.7.2 (1.94)
2006-07-27 11:45:50.699976 soap_transport_http: set Accept-Encoding: gzip, deflate
2006-07-27 11:45:50.700064 soap_transport_http: set Connection: close
2006-07-27 11:45:50.700138 soap_transport_http: entered send() with data of length: 0
2006-07-27 11:45:50.700215 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host webservices.affili.net, port 80
2006-07-27 11:45:50.700286 soap_transport_http: calling fsockopen with host webservices.affili.net connection_timeout 0
2006-07-27 11:45:50.729437 soap_transport_http: Couldn't open socket connection to server http://mywebserver/pdws/ProductDataV1.asmx?WSDL, Error (111): Connection refused
2006-07-27 11:45:50.729603 wsdl: HTTP ERROR: Couldn't open socket connection to server http://mywebserver/pdws/ProductDataV1.asmx?WSDL, Error (111): Connection refused
2006-07-27 12:06:25.543271 nusoapclient: got wsdl error: HTTP ERROR: Couldn't open socket connection to server http://mywebserver/pdws/ProductDataV1.asmx?WSDL, Error (111): Connection refused
|
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
Joined: 13 Jul 2003 |
Posts: 8351 |
|
|
 |
Posted: Wed Jul 26, 2006 10:31 am |
|
 |
 |
 |
 |
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.
Quote: | But port 80 is open on my firewall |
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 |  |
Joined: 08 Aug 2006 |
Posts: 1 |
|
|
 |
Posted: Mon Aug 07, 2006 3:18 am |
|
 |
 |
 |
 |
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 
|
|
 | Same here |  |
 |
 | |  |
 |
 | |  |
Joined: 09 Aug 2006 |
Posts: 10 |
|
|
 |
Posted: Sun Aug 13, 2006 3:30 am |
|
 |
 |
 |
 |
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.
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT - 5 Hours
Page 1 of 3
|
|
|
|  |