I want to connect to a webservice called e-conomic to sync data from my webshop with the e-conomic bookkeeping system. But I’m stuck at the beginning how to start a connection.
I’ve got an e-conomic account, a username and a password and I installed the suds library to make the call:
>>> from suds.client import Client
>>> c = Client('https://www.e-conomic.com/secure/api1/EconomicWebService.asmx?WSDL')
>>>
Then what?
The documentation is here and what I want to do is create a new order like described here.
My code that is part of my app is only just started and I don’t know how to specify my account in the SOAP request:
from suds.client import Client
class Economic(NewBaseHandler):
def get(self):
url = 'https://www.e-conomic.com/secure/api1/EconomicWebService.asmx?WSDL'
client = Client(url)
self.response.out.write('client: %s' % str(client))
Can you tell me how to proceed?
You have to call the webservice with the
servicemethod of theClient.I got this error because user is not authenticated. There might be some service or some key by which they will authenticate the user. You need that key then you can call the services.