Reputation: 9
I'm pretty new in WS programming.
I created WS (that I picked the base from http://www.digicoast.com/delphi_soap_standalone.html) using delphi-7
When I consumed it through XAMPP php nusoap that is installed to my PC, it worked well and I got the requested result.
But when I consumed it through php nusoap on my web hosting, it returned nothing.
When I put debug in the php codes, it says: HTTP Error: Couldn't open socket connection to server. Error(110): Connection timed out.
Here is my php codes:
<?php
require_once('../lib/nusoap.php');
$aparams = 'kode_query='.'TRIPS_ALL'.'&'.
'kode_user='.$username.'&'.
'kode_id='.$uid;
$client = new nuSoap_Client('http://110.139.181.78:9696/wsdl/IVSoftWS');
$xml_data = $client->call('GetXMLDataTable',$aparams);
echo '<h2>Debug</h2>';
echo '<pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>';
echo '<h2>Error</h2>';
echo '<pre>' . htmlspecialchars($client->getError(), ENT_QUOTES) . '</pre>';
?>
Info: my web hosting using php 5.2.9, while my XAMPP using php 5.3.1
Question: How can I get the same result through web hosting php codes?
Any helps are really appreciated.
Upvotes: 0
Views: 845
Reputation: 36654
Have you checked the firewall settings? The server seems to run on port 9696, this port needs to be opened on the server (more precise: the server which runs the Delphi 7 web service server app) for incoming connections.
To verify, you can use a web browser (or wget) from a different computer, and try to open the service URL.
Upvotes: 1