Are you talking about these lines?
$CredentialToken = $SoapLogon->KasAuth(
array('KasUser' => $kas_user,
'KasAuthType' => 'sha1',
'KasPassword' => sha1($kas_pass),
'SessionLifeTime' => $session_lifetime,
'SessionUpdateLifeTime' =>
$session_update_lifetime
)
);
That looks like an array of key->value pairs... which in python would be a
dictionary.
my_dictionary = {'KasUser': kas_user, 'KasAuthType' : 'sha1',
#etc...
and if calling KasOBJ.client.service.KasAuth(my_dictionary) doesn't work...
(which I think it would) but in some cases the parameters of the method are
based on individual keys
you would call the service like
KasOBJ.client.service.KasAuth(**my_dictionary) which expands the dictionary
into the key->value pairs
On Sat, Jun 1, 2013 at 6:38 PM, Tamer Higazi <th982a(a)googlemail.com> wrote:
Hi people!
I have a problem passing an xs:anyType Parameter in "suds".
The original sample is an application, where a "PHP Array" is being
passed for the remoted method. What is the same type in python to
accomplish the task?!
doc with sample:
http://kasapi.kasserver.com/dokumentation/?open=soap
here the sample code with it's output:
from suds.client import Client
class KasAPI(object):
def __init__(self):
self.__WSDL =
'https://kasserver.com/schnittstelle/soap/wsdl/KasAuth.wsdl'
self.client = Client(self.__WSDL)
KasOBJ = KasAPI()
print KasOBJ.client
output:
Suds (
https://fedorahosted.org/suds/ ) version: 0.4 GA build:
R699-20100913
Service ( KasApiAuthenticationService )
tns="https://kasserver.com/"
Prefixes (0)
Ports (1):
(KasApiAuthenticationPort)
Methods (1):
KasAuth(xs:anyType Params, )
Types (0):
_______________________________________________
suds mailing list
suds(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/suds