NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Error : Couldn't open socket connection to server


Joined: 02 Aug 2007
Posts: 1
Reply with quote
Hey,

I want to use my webservice developpe in c# with the librairy nusoap, but I have this error :

HTTP Error: Couldn't open socket connection to server http://localhost:3309/Service1.asmx?wsdl prior to connect(). This is often a problem looking up the host name.

I know this error was already treated, but in reading different topic, I don't find the solution. It'll be about my hostname "http://localhost:3309/Service1.asmx?wsdl" but I'm sure it's ok because I use it in same time with an application asp.net and it's good. So I don't know how resolved it.

Here my php code :

Code:

require_once('nusoap/lib/nusoap.php');
$parameters = array(
'login'=>'npi',
'password' => 'test'
);

$soapclient = new soapclient('http://localhost:3309/Service1.asmx?wsdl','wsdl');

$results = $soapclient->call('Authenticate',$parameters);
if(!$err = $soapclient->getError()){
echo 'Resultat renvoyé par le webservice : '.$results.'';
} else {
echo 'Erreur : '.$err;
}


Thank you for your help
View user's profileFind all posts by MonicoSend private message
Error : Couldn't open socket connection to server
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 1  

  
  
 Reply to topic