Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6606233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:22:27+00:00 2026-05-25T19:22:27+00:00

I am developing a SOAP web service in Java using metro. I want to

  • 0

I am developing a SOAP web service in Java using metro.
I want to deliver the response in in the client language.
My idea is to return all the string fields translates. This is not the main purpose for the web service, but is a needed convenience.

The ResourceBundle is a java class that handles the loading of the correct set of strings according the client Location.
Is this class the best approacher?

And the real question: in a WS environment how to know the client location?

EDIT:
I like @Volker idea, let decide what language will be used.

How to send the intentions to the service?

  • Header parameter?
  • Method (body) parameter?
  • Any other option?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:22:27+00:00Added an answer on May 25, 2026 at 7:22 pm

    Generally, I would say, if possible, let the client explicitly tell you what language he wants and deliver it according to his needs.

    This may be an additional web method “getSupportedLanguages” which delivers a list of enUS, deDE or whatever and your other methods may accept those languages and deliver the correct response. Or deliver all language versions and let the client sort it out. But this may be a bit network overkill depending on the number of supported locales…

    In my opinion, WebServices should “stand on their own”, the clients should be thin and not require lots of information to process the content. Imagine a C#-client, who may not be able to work with your Ressources or whatever. Or a new client without ressources not being able to work with your data…

    Additionally, it could be different to really get the clients locale – a non-english person may use an english system or may be in an english country, but would like to see data in his native language. But if you really need to do this, I’m not aware of anything to enable this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a web-service using WCF, which I want to access using a client
I'm developing a java web service, with client certificate security enabled. I don't want
Hi all We are developing a web service that will be available through SOAP
I am developing a Java web services application that is (mostly) to be used
I am developing a contract-first web service based on Spring-WS. I'm relying on Castor
I'm developing a SOAP application that integrates with a 3rd party. I think the
Developing a heavily XML-based Java-application, I recently encountered an interesting problem on Ubuntu Linux.
When developing whether its Web or Desktop at which point should a developer switch
When developing a new web based application which version of html should you aim
I'm currently developing a set of webservices in Java, to host on Axis2 running

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.