[Fedora-suds-list] Internationalization SOAP headers

Michael Sommerville msommerville at gmail.com
Tue Dec 8 23:49:42 UTC 2009


All,

I don't know if anyone might find this little enhancement useful, but I added rudimentary support for ws-i18n SOAP headers (http://www.w3.org/TR/ws-i18n/#sec-soap-i18n).   We are using a WS at work that requires such things.  In this implementation, the locale parameter is mandatory, the additional time-zone optional.  

It may be used as follows: 

from suds.international import * 
_i18n = International('en')
# Get client object instance
client.set_options(i18n=_i18n)

Thanks,

-Mike

-------------- next part --------------
A non-text attachment was scrubbed...
Name: suds.international
Type: application/octet-stream
Size: 3794 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-suds-list/attachments/20091208/77958da1/attachment.obj>
-------------- next part --------------





More information about the fedora-suds-list mailing list