Hi,
When I try to access my soap server, I am getting the following error. DOes anyone know what is causing this error?:

Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] Error cannot find parameter in C:\Program Files\xampp\htdocs\www.benjaminmoore.com\client1.php:6 Stack trace: #0 [internal function]: SoapClient->__call('login', Array) #1 C:\Program Files\xampp\htdocs\www.benjaminmoore.com\client1.php(6): SoapClient->login('UserId', 'Username', 'Points', 'Street', 'City', 'Province', 'Postal_code', 'Country') #2 {main} thrown in C:\Program Files\xampp\htdocs\www.benjaminmoore.com\client1.php on line 6

my client is as follows:

<?
ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache
$client = new SoapClient("http://localhost/www.benjaminmoore.com/benmoore.wsdl");
$client->login("UserId","Username","Points","Street","City","Province","Postal_code","Country");
?> 

and the server is:

function login($user_id,$username,$points,$street,$city,$province,$postal_code,$country) {
	return  $user_id;
}
function approveOrder($transaction) {}
ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache
$server = new SoapServer("benmoore.wsdl");
$server->addFunction("login");
$server->addFunction("approveOrder");
$server->handle();

and my wsdl can be found at: http://www.mikeguglietti.com/www.benjaminmoore.com/benmoore.wsdl

    Write a Reply...