OpenEMM Python Client for WebServices 2.0

Use this forum for all questions related to the source code of OpenEMM

Moderator: moderator

ronoaldo
Posts: 3
Joined: Thu Apr 18, 2013 3:49 pm
Location: São Paulo, Brasil

OpenEMM Python Client for WebServices 2.0

Post 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
bk007
Posts: 19
Joined: Sat May 18, 2013 3:29 am

Re: OpenEMM Python Client for WebServices 2.0

Post by bk007 »

Wow.. awesome job, Ronaldo!!!!!!!
maschoff
Site Admin
Posts: 2596
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEMM Python Client for WebServices 2.0

Post 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
OpenEMM Maintainer
ronoaldo
Posts: 3
Joined: Thu Apr 18, 2013 3:49 pm
Location: São Paulo, Brasil

Re: OpenEMM Python Client for WebServices 2.0

Post 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,
maschoff
Site Admin
Posts: 2596
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEMM Python Client for WebServices 2.0

Post by maschoff »

Done!
OpenEMM Maintainer
bhcuong2008
Posts: 26
Joined: Fri Apr 11, 2014 3:56 pm

Re: OpenEMM Python Client for WebServices 2.0

Post 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,...
Post Reply