Page 1 of 1

PEAR::SOAP Error

Posted: Mon Dec 01, 2003 8:28 am
by Nunners
Does anyone know what the following error means, when using the SOAP package from PEAR?
Warning: Missing argument 2 for login() in /usr/share/pear/SOAP/WSDL.php(580) : eval()'d code on line 238
Is it my code - or the package?

Here's my code:

Code: Select all

<?php
require_once('SOAP/Client.php');

$wsdlurl = 'http://englandnet4.touchvision.co.uk/testenglandnetclass/service1.asmx?wsdl';
$WSDL = new SOAP_WSDL($wsdlurl);
$client = $WSDL->getProxy();

$params=array('UserName'=>'****','Password'=>'****');
$response = $client->Login($params);
?>
Thanks Nunners

Posted: Mon Dec 01, 2003 9:19 am
by twigletmac
You're missing a second argument for the Login() function - does it take the user info as an array or as separate params.

Mac