[Soap-Python] What is the correct way to call this operation?

Burak Arslan burak.arslan at arskom.com.tr
Sat Mar 24 13:06:46 CET 2012


On 03/23/12 23:27, Ryan.Hsu at emc.com wrote:
>
> However, when I attempt to call it with:
>
>      client = 
> SoapClient(wsdl='http://myserver:9443/services/mcService?wsdl', 
> trace=True, soap_server='axis')
>
>      client.login({'user': 'test', 'password': 'xxx', 'client': 
> 'tester', 'domain': '/', 'locale': 'en_US'})
>
> The server does not like the request:
>
> I have a feeling it has to do with namespaces not being prefixed to 
> the individual parameters.


I agree, the cllient you're using (I don't recognize the api) is sending 
an invalid request. Did you try it  with suds? Try this:

from suds.client import Client
client = Client('http://myserver:9443/services/mcService?wsdl')
client.service.login('test', 'xxx', 'tester', '/', 'en_US')

Hth,
Burak



More information about the Soap mailing list