Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 05, 2012 at 10:41 AM

    Hello Martin,

    Have you found the solution already? If so, please, share it with the community and close this thread.

    Regards,

    Alex.

    Add comment
    10|10000 characters needed characters exceeded