[SOAP] Multiple parameters input in WSDL
| From: | nitesh.apte | Date: | Sat, 09 Jul 2011 15:40:57 +0000 |
| Subject: | [SOAP] Multiple parameters input in WSDL | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-3322@lists.php.net to get a copy of this message | ||
Hi
I have created a class for user login. The class is as follow:
class MyClass
{
public function userLogin($username, $password)
{
return 'I am here';
}
}
The method userLogin takes two parameters - username and password. The WSDL
file that I have created is as follow:
<?xml version="1.0" encoding="UTF-8"?>
I get this error on executing in SoapUI - "Missing argument 2 for
MyClass::userLogin()". But if I remove second parameter from 'userLogin'
method, then there is no error but there is no output. The expected output
is 'I am here'.
Thing is I don't know what to write in if there is multiple parameter input
for a given method(userLogin).
Please help me out here. It's urgent and I am a newbie.
Thanks
--
View this message in context: http://old.nabble.com/Multiple-parameters-input-in-WSDL-tp32027971p32027971.html
Sent from the Php - Soap mailing list archive at Nabble.com.