XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).
Moderator: General Moderators
-
Nunners
- Forum Commoner
- Posts: 89
- Joined: Tue Jan 28, 2003 7:52 am
- Location: Worcester, UK
-
Contact:
Post
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
-
twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Post
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