[Fedora-suds-list] Internationalization SOAP headers

Michael Sommerville msommerville at gmail.com
Wed Dec 9 15:55:14 UTC 2009


On Wed, Dec 9, 2009 at 1:47 PM, Jeff Ortel <jortel at redhat.com> wrote:
> Thanks Mike.
>
> I'm interested in adding to the distribution but I don't know much about
> i18n and soap. How complete is this?  Is it ready to be added?

I'm not sure I know any more than you Jeff ;-)  I just hacked it in as
our WS required these headers.

There are a few limitations.  There is no validation of the locale or
tz settings.  According to the spec the locale must be valid according
to the LDML (language_code ("_" script_code)? ("_" territory_code)?
("_" variant_code)*) or be "$neutral" or "$default".  The tz setting
is optional, and the value is implementation defined (either OlsenID
or TZ+offset).  I'm not sure it is worth the bother of trying to do
anything too fancy here, I was just passing both elements as strings.

There is another optional, complex element 'preferences', which I
completely ommited, as we don't use it, and the spec says that no
application must depend on it.

Other than that it seems ok to me.  We've been using it here for a few
weeks doing automated tests on our WS.

Cheers,

-Mike




More information about the fedora-suds-list mailing list