Example: Booking Service - Calling a Web Central Web Service from a .NET Application

This example shows how to call the Booking Service web service from a .NET application.

Configuration

The configuration files for the Booking Service remoting configuration are in the /WEB-INF/config/context/remoting/examples/webservices-cxf folder. To use this example, configure WebCentral according to instructions in the readme.txt , located in this folder. This configuration includes both remoting (Web Services support) and rendering (Web Central and Smart Client forms and reports support).

Limitations

The current implementation of Booking Service does not use any authentication or security. For production deployment, you need to configure WebService to use security, which is appropriate for your deployment (for example, WS-Security: http://en.wikipedia.org/wiki/WS-Security).

Example Files

The example is located in the Examples\Using Web Services\NET\WsClient folder, available from Archibus Technical Support.

This is a C# .NET Windows application, calling the WebCentral BookingService Web Service.

The application has a form with five buttons:

image002.jpg

Each button invokes a service method. If you click on the buttons, you will see the following output on the Eclipse console:

image004.jpg

The getBookings button also shows the return value in the popup dialog.