kartagis / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

Invalid Arg structure error #180

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

from pysimplesoap.client import SoapClient
client = 
SoapClient(wsdl="https://platform.mediamind.com/Eyeblaster.MediaMind.API/V2/Auth
enticationService.svc?wsdl")
auth_token = client.ClientLogin(username = 'id', password = 'pass',
                              applicationKey = 'samplekey')

token=  auth_token['ClientLoginResult']
print token

campaign_service =  
"https://platform.mediamind.com/Eyeblaster.MediaMind.API/CampaignService.svc?wsd
l"

campaign_client =  
SoapClient(wsdl="https://platform.mediamind.com/Eyeblaster.MediaMind.API/Campaig
nService.svc?wsdl"
                              ,trace = True)

data = campaign_client.GetContact(ContactID='1',UserSecurityToken=token)

geting below error :

ValueError: Invalid Args Structure. Errors: [u"Argument key UserSecurityToken 
not in parameter. parameter: {u'ContactID': <type 'int'>}, args: {'ContactID': 
'1', 'UserSecurityToken': u'd6fead2a-3b6f-49d1-ae04-07fcb6157c4f'}"]

How to send paramaters here ..for some other methods its wworking if we pass 
parameters like this . 

Original issue reported on code.google.com by browse2s...@gmail.com on 28 Apr 2015 at 2:02