Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Localized data and error messages in web services?

Is there a way to tell a ME web service to respond translatable date in <SOAP-ENV:Body> or the <faultstring> in <SOAP-ENV:Fault> in a specific language? The ME web services ignore the HTTP header "Accept-Language". Is there a SOAP Header where I can set the locale?

Example: I build an Adobe Flex application requesting data from ME via standard web services. The user enters the site. If he/she misspelled it, almost every web service returns this:

<SOAP-ENV:Fault>
   <faultcode>SOAP-ENV:Client</faultcode>
   <faultstring>
      Site "MisspelledSiteName" invalid (Message 12930)
   </faultstring>
   <detail>
      <yq1:com.sap.me.frame.mapping.data.MappingException 
         xmlns:yq1="http://sap-j2ee-engine/client-runtime-error">
         Site "MisspelledSiteName" invalid (Message 12930)
      </yq1:com.sap.me.frame.mapping.data.MappingException>
   </detail>
</SOAP-ENV:Fault>

Now I have to display this message to the user in his/her language, in our case it is German.

Best regards,

Martin

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question