I add this post for those who wants to use the E-conomic API with Python using webservices.
Initial Steps:
1) Create client using suds
2) Pass the path of wsdl file to client
3) Call the all the webservice methods using that client
The steps I should follow to use E-conomic api with Python using webservices:
All the methods of webservices which I used as per my requirement
1) Connect To the E-conomic API account through Connect( ) method, but for that you already have account on E-conomic.
Successfully connected & get default string as a response
2) Create Client as a Debtor through Debtor_Create( ) method
Successfully created & get response as Customer Number
Also set other information like,
Email Address, TermOfPayment and Layout as per your requirements
3) Create Current Invoice For the Above Customer(Debtor) through CurrentInvoice_Create() method
Successfully created & get response as Invoice_Id
4) Create Current InvoiceLines For the Current Invoice through CurrentInvoiceLine_Create() method
Successfully created & get response as InvoiceLine_Id & InvoiceLine_Number
5) Set the Product details to the Current InvoiceLines through CurrentInvoiceLine_SetProduct() method
Successfully Set the Product to the Current InvoiceLine & also set the other details of product.
6) I Call the CurrentInvoice_Book( ) to book that invoice
Which return the Invoice Number
7) Using that Invoice Number call Invoice_GetPdf( ) method which returns the invoice's pdf file, in base64binary encoded format so decode it.
Then send it to email_id of customer (Debtor).
You get information of all the available methods here,
https://www.e-conomic.com/secure/api1/EconomicWebService.asmx
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/krCR-4KvTGEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment