cancel
Showing results for 
Search instead for 
Did you mean: 

How to get localized error text for a BusinessException using SOAP

Former Member
0 Kudos

Per the recommended procedure for exceptions in the ME environment, we are extending BusinessException to create some custom exception classes. This works well when the service is used from within the ME UI. We get the expected English (or other language) translation for the message.  For example, in this case we expect something like:

“Required parameter ‘documentName’ is missing or empty.”

But when we call the same service via a web service interface, we get this SOAP Fault, which does not include the error message text:

Is this by design, or do we have to do something more in our custom exception class?

I could see where, in the general case, you’d want the client to determine the language of the error message.  So perhaps there is a way for the web service client to call back into the service to get the translated message (passing back the exception object, to provide the data values). (?)


Thanks and regards,

Barry Schader

Sr.Prin.Software.Engr | Make Process Team

Medtronic


Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Can you have a look into SAP Note 2220283.

I hope this can get you closer to solve your problem.

Thanks

Vignesh

former_member185234
Active Participant
0 Kudos

Hi Barry,

I have attached example how to localize error messages in custom web services.

Please make sure that you have correct core SAP ME version installed, Note number from Vignesh contains patch number where it was fixed.

Regards,

Oksana