Page 1 of 1

OpenEMM Python Client for WebServices 2.0

Posted: Sun Feb 09, 2014 2:32 am
by ronoaldo
Hi OpenEMM developers,

I've published a few weeks ago a simple Python client for OpenEMM webservices, using the Suds library, and with some small goodies:
- Properly handles the timeone offset when generating wsse elements
- Properly encodes the Map and MapItem elements, avoiding some issues with AddSubscriber attribute encoding
- Convenience method to encode a standard Python map as Map and MapItem elements
- Convenience local development with the maven setup, or using a local virtual machine

The project is published both for Mercurial (at Bitbucket) https://bitbucket.org/ronoaldo/openemm-python-client and Git (Github) https://github.com/ronoaldo/openemm-python-client.

Please, leave your comments bellow. Don't forget to fork the projects and submit pull request with improvements!

/happy hacking

--
Ronoaldo JLP

Re: OpenEMM Python Client for WebServices 2.0

Posted: Sun Feb 09, 2014 5:24 pm
by bk007
Wow.. awesome job, Ronaldo!!!!!!!

Re: OpenEMM Python Client for WebServices 2.0

Posted: Sun Feb 09, 2014 6:52 pm
by maschoff
Hi Ronoaldo,
thanks for sharing your code with the OpenEMM community!

If you like, we can include a link to your code on this page in section "Downloads from Contributors":
http://www.openemm.org/downloads.html

Re: OpenEMM Python Client for WebServices 2.0

Posted: Sun Feb 09, 2014 7:00 pm
by ronoaldo
Hi everyone,

bk007, thanks! Suggestions are welcome!

maschoff yes, it would be great to have the Github/Bitbucket links added to the downloads page. Thanks!

Kind regards,

Re: OpenEMM Python Client for WebServices 2.0

Posted: Sun Feb 09, 2014 7:09 pm
by maschoff
Done!

Re: OpenEMM Python Client for WebServices 2.0

Posted: Thu May 15, 2014 8:24 am
by bhcuong2008
I've just tested this client. It's really good. Thanks.

I'd like to know how to convert Map returned by web service to Python data structure for easy access.

For ex, after getting customerId, we use method GetSubscriber for more info about this subscriber.
Result is a SOAP map data structure. I want to manipulate it easily like customer.firstname, customer.lastname,...