Hey all,
I am having a problem connecting to a .NET service running the Microsoft Soap toolkit on the
server side using the nusoap client service. It seems to not be understanding the parameters
that I am sending the other side. I continously receive and INvalid User error on there end
which just means it does not understand the parameters I am sending.
below is the nusoap client call I am using:
$parameters = array(
'name' => 'alex',
'state' => 'NJ',
'zip' => '03948',
);
// Define new object and specify location of wsdl file.
$soapclient = new soapclient('http://www.somsiete.com0?WSDL',true);
$err = $soapclient->getError();
if ($err) {
// Display the error
$answer = 'Constructor error ' . $err;
} else {
// call the method and get the result.
$result = $soapclient->call('GetPPDData',$parameters);
// Display the request and response
echo '<h2>Request</h2>';
echo '<pre>' . htmlspecialchars($proxy->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2>';
echo '<pre>' . htmlspecialchars($proxy->response, ENT_QUOTES) . '</pre>';
// Check for a fault
if ($soapclient->fault) {
$answer = 'Fault';
} else {
// Check for errors
$err = $soapclient->getError();
if ($err) {
// Display the error
$answer = 'Error ' . $err;
} else {
//concatenate all array elements into a variable to send out
while (list(,$item)=each($result)) {
$answer .= $item;
}
}
}
}
Again, is there an issue of sending nusoap messages to a server that is running the Microsoft Toolkit for soap? Any help
would be greatly appreciated. Thanks.