Previous Topic: How a Remote Request Is ProcessedNext Topic: Task Operation Types


Localization Support in TEWS Requests

To specify a locale, send the following properties on your TEWS request. For example, the following two lines specify that you want the current TEWS request to be localized to French:

stub._setProperty("javax.xml.rpc.session.maintain", new Boolean(true));
stub._setProperty("Cookie2", "Accept-Language: fr");

These lines introduce the Accept-Language property in the Cookie2 header. It is accessible by the TEWS6SoapBindingStop and is maintained throughout the runtime building of the TEWS request.