Hi,
I'm running Cassini on my home PC on port 27868. I have set my router to transfer traffic on that port to my local pc. People are able to view a web page OK so I guess that is all I can hope for as far as support here is concerned. I am verty happy to have even achieved this :-)
What I really want to do though is run a web service on that port. I keep getting the following when calling the web service via php:
wsdl error: HTTP ERROR: Couldn't open socket connection to server
http://xx.xx.xx.xx:27868/Service1.asmx?WSDL, Error (111): Connection refused
The php is:
<?php
require_once('nusoap.php');
$client=new nusoap_client('http://xx.xx.xx.xx:27868/Service1.asmx?WSDL',true);
$err = $client->fault;
if ($err) {
echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
}
// wrapping here
$param=array('parameters' => array('name'=>'Matteo'));
$result = $client->call('recordBooking');
print_r($result);
if ($client->fault) {
echo '<h2>Fault</h2><pre> '; print_r($result); echo '</pre>';
} else {
$err = $client->getError();
if ($err) {
echo '<h2>Error</h2><pre> ' . $err . '</pre>';
} else {
echo '<h2>Result</h2><pre> '; print_r($result); echo '</pre>';
}
}
echo '<h2>Request</h2><pre> ' .htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';
echo '<h2>Debug</h2><pre> ' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>';
?>
Can anyone help me with this.
Thank you.