NAKAMURA, Hiroshi
2/6/2006 12:51:00 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Mike Carr wrote:
> They webservice method that I'm using has a complex type as an input
> parameter.
>
> When I invoke the webservice method (a login method) I get an error
> returned from the webservice saying that I have an invalid uid/pwd
> (which I know is not true).
>
> I cannot find any information that says there is a different way of
> specifying complex types so I've just added the method like:
>
> <code>
>
> stub.add_method('login', 'user_name', 'password', 'version',
> 'application_name')
>
> </code>
>
> Note the "user_name", "password" and "version" parameter are part of the
> complex type "user_auth" whereas "application_name" is a simple type.
Can I see the WSDL of the service, or a sample SOAP request which should
be sent?
The following client may work though.
stub.add_method('login', 'user_auth', 'application_name')
stub.login(
:user_auth => {:user_name => 'username', :password => 'pwd'},
:application_name => 'appname'
)
Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
iD8DBQFD5pzuf6b33ts2dPkRAjdSAKCNDmXKVYtcfcRVntBTihkk7+Db7QCgiRnz
4fB2N3kgCNePoJMAqcYqOl0=
=7y8J
-----END PGP SIGNATURE-----