Nusoap problem - empty request in web service
Hi,
I am using the nusoap.php to invoke .Net web service.
While debugging, I noticed that the web service is invoked but all the parameters it recieved are null.
I have checked the namespace and it ok.
In this example I am sending one parameter, but also, if I am sending more, all of them are null.
I have tried to set style=document and use=literal but nothing is working.
Also tried to use the esdl method with no success.
here is the client php code:
<?php
include ("lib/nusoap.php");
$param = array
(
'userName'=>'testAPI'
);
$serverpath ='(URL address blocked: See forum rules);
$namespace = '(URL address blocked: See forum rules);
$soapclient = new soapclient($serverpath);
$soapAction='Register2';
$result = $soapclient->call('Register2',$param,$namespace,$soapAction) ;
if (isset($fault))
{
print "Error: ". $fault;
}
else if ($result)
{
echo '<h2>Result</h2>';
var_dump($result);
}
else
{
print "No result";
}
echo '<h2>Request</h2><pre>' . htmlspecialchars($soapclient->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($soapclient->response, ENT_QUOTES) . '</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($soapclient->debug_str, ENT_QUOTES) . '</pre>';
?>
thanks for your help,
Ronen
|