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 :
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