Skip to Content
0
Feb 07, 2007 at 01:22 PM

Exception handling for Web services based BAPIs using Visual Studio

29 Views

Using the Web Service Creation Wizard it is possible to create a Web service for every BAPI. Each BAPI returns status information about its execution in a complex parameter named RETURN in its output message. This parameter returns exception messages or success messages to the calling program. When published as a Web service the return parameter can be retrieved from a .NET Web service client. In my blog I would like to introduce a set of C# classes that can be used to check the different return parameters of such a Web service for BAPI errors. If the return parameter contains an error messages this error is thrown as a .NET exception. The classes reside in their own namespace and can easily be added to any existing project.

The code can be downloaded from the .Code Snippet Gallery .

Best regards,

André