I think you'll find that the problem is exactly what the warning says: you need a 2nd argument for your login() function. The proxy class that is generated knows how many arguments to expect from your WSDL and so your login() is expecting username and password as two separate parameters, not as ana array of parameters. Tristan. > -----Original Message----- > From: James Nunnerley > [mailto:james.nunnerley@visitheartofengland.com] > Sent: Tuesday, 2 December 2003 1:23 AM > To: soap@lists.php.net > Subject: RE: Documentation on using PEAR/SOAP > > > OK... So I've found some documentation, however, it's still > not great..... > > I've got the following error coming up on my code: > Warning: Missing argument 2 for login() in > /usr/share/pear/SOAP/WSDL.php(580) : eval()'d code on line 238 > > I've installed the latest stable version of PEAR::SOAP. > > Is this an error in my code or the package? > > Nunners > > PS: This is my code: > > <?php > require_once('SOAP/Client.php'); > > $wsdlurl = > 'http://englandnet4.touchvision.co.uk/testenglandnetclass/serv ice1.asmx? wsdl'; $WSDL = new SOAP_WSDL($wsdlurl); $client = $WSDL->getProxy(); $params=array('UserName'=>'','Password'=>''); #Username & Password secret! $response = $client->Login($params); var_dump($response); ?> -----Original Message----- From: James Nunnerley Sent: 01 December 2003 13:20 To: soap@lists.php.net Subject: Documentation on using PEAR/SOAP Sorry to sound very ignorant, however I cannot see any documentation on how to use the SOAP package from with PEAR. I've tested and tested, however still can't get it working - but it doesn't help when you are guessing! Can someone help? Thanks Nunners -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php