Web Services Reference for Oracle Billing Insight > Customizing RESTful Resources > About Customizing Localization Values >

About the Locale


The locale values of the request and response are specified in the HTML header. In service requests, the locale can be retrieved from the Accept-language attribute. Oracle Billing Insight supports one acceptable language for each request. The following XML shows an example of a request using the Accept-language attribute:

POST /rsclient/webservice.action HTTP/1.1
Host: myhost.example.com:7001
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.7) Gecko/20100101 Firefox/10.0.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate

In the service responses, the locale value is in the Content-Language attribute, as shown:

HTTP/1.1 200ok
Date: Wed, 05 Sep 2012 22:14:15 GMT
Content_Length:533
Content-Type:application/xhtml+xml
Content-Language: en-US
X-Powered-By:Servlet/2.5 JSP/2.1

Web Services Reference for Oracle Billing Insight Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.