Skip to Content

Prototype for MS-Office Add-In Integrating SAP Web-Services Part III – Finally Something Different…

h2. Introduction  If you read the first two parts (“{code:html}Prototype for MS-Office Add-In Integrating SAP Web-Services{code} / “Working with the Services Registry API”) of my journey through the land of SAP SOA.NET integration, you probably know that I wanted to call SAP web services from within MS Office. But – how life plays – I ended up somewhere else. In the end I build a test program which connects to the SAP services registry in esworkplace and enables the user to retrieve some basic information on the services in the registry. I managed to encapsulate those methods of the services registry API which I found as essentially important in a DLL which I re-used in my demo-application.   Here I will describe the DLL as such, and how it is called in a little demo application. Together with a real-life model view controller in C# .NET I hope that you will find this instructive. h2. General Architecture   We want to call SAP web services dynamically (I talked about this in my other two blogs) and want to get rid of hard-coded URLs to the actual web services to make our application deployable and independent of the configuration at design time. The standard approach to connect web services is via the “+Services Registry+”. The Services Registry (SR) offers an API which enables the developer to search for and to call web services dynamically through the SR.   Unfortunately, in .NET there is no encapsulation of the API available which allowed developers to connect to it easily. Thus, I decided to write a DLL encapsulating the API – well, at least some essential methods which I found important to me. The DLL proved to be very useful when building a little demo-app where I call the SR and read some information about the services available in the system. The UI is standard Windows Forms technology and is decoupled from the rest of the logic via a MVC (model view controller) pattern implementation.Architecture overview
Be the first to leave a comment
You must be Logged on to comment or reply to a post.