You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by Jorge Lorenzo <jo...@tid.es> on 2003/06/19 01:51:18 UTC
[juddi-Developers] JAXR localization issue
Hi,
As Steve Viens suggested, I'll comment a problem we asked in the JUDDI user
forum. My problem was solved as I'll explain so the objective of this
message is to help (if your language is not English).
Some days ago, I had some problems with the query and publish actions
because of the language (I'm Spanish). We are using JAXR (SUN's
implementation) and JUDDI register.
By default, we publish in Spanish because the SOAP message request includes
the <xml:lang="es"> tag. On the other hand, by default, the queries are in
English because the request includes the <xml:lang="en"> tag. So, we
couldn't find anything that we published.
This is also the default behaviour of the SUN registry server. So I think
that this is not a problem of JUDDI register.
We surpassed this problem by publishing in English. We can get this with the
InternationalStrings:
InternationalString s =
businessLifeCycleManager.createInternationalString(Locale.ENGLISH,
organizationName);
Organization org = businessLifeCycleManager.createOrganization(s);
s = businessLifeCycleManager.createInternationalString(Locale.ENGLISH,
organizationDescription);
org.setDescription(s);
With this sentences, the <xml:lang> for the name and description will be in
English and finally we'll find the organization by name or description.
Anyway, we solved our problem but I think this behaviour is not adecuated.
In fact, we don't know how to query in Spanish. This is not a problem for us
because we are not interested in disguising by the language.
Best regards,
Jorge