•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 427,439 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,635 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser: Programming Forums
Views: 4568 | Replies: 1
![]() |
•
•
Join Date: Jun 2006
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
I am having running the getProxy function from my server machine at work. I tried using the same code below from my server at home and it worked fine with no problems. Is there a setup option of some kind that I may be missing?
// 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://www.test.com',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://www.test.com');*/
$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>';
When I try to use the same code on my work machine server I am getting some weird error:
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
im not sure why this error is occuring since i am using the same php classes as my server machine at home.
Any help would be greatly appreciated. Thanks.
// 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://www.test.com',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://www.test.com');*/
$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>';
When I try to use the same code on my work machine server I am getting some weird error:
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
im not sure why this error is occuring since i am using the same php classes as my server machine at home.
Any help would be greatly appreciated. Thanks.
•
•
Join Date: Jun 2006
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
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://www.test.asmx?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 the server hosting the WSDL file? I thought we were just using regular http requests? Any help would be appreciated.
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://www.test.asmx?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 the server hosting the WSDL file? I thought we were just using regular http requests? Any help would be appreciated.
![]() |
•
•
•
•
•
•
•
•
DaniWeb RSS, Web Services and SOAP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
- Internet Explorer not working. (Web Browsers)
- Problem receiving result from Microsoft Soap toolkit server service using Nusoap clie (RSS, Web Services and SOAP)
- messanger not working. (Web Browsers)
- cd burner not working (Storage)
- Working on new design (DaniWeb Community Feedback)
Other Threads in the RSS, Web Services and SOAP Forum
- Previous Thread: Problem receiving result from Microsoft Soap toolkit server service using Nusoap clie
- Next Thread: FOAF in SOAP


Linear Mode