Web Services have proven increasingly efficient in sharing data among distributed applications in a hybrid language environment. The functionalities are made accessible over the web using SOAP (Simple Object Access Protocol). In InetSoft, it is possible to create a data source which retrieves data from a web service. The web service could be any standard SOAP implementation. To connect to the web service from InetSoft make sure you create the client java stub.
Apache Axis is a common and widely used SOAP implementation. It provides a utility for creating a java client stub by introspecting a web service.
Note: Make sure the {StubHome} folder is added to the classpath (of the Data Modeler or Report Designer) when creating your data source.
We will discuss the creation of a (Java) client stub for a web service. The steps involved are as follows:
Before creating any web service data source make sure of the following:
Note: The example discussed in the document uses a web servicecalled ‘People Service’ that is deployed with the installation.
Note: This example discussed in the document can use the ‘complexClient.jar’ file in the ‘sree/WEB-INF/lib’ folder as the client stub.
Walkthrough: We will now walk through the creation of a SOAP data source, which will connect to the ‘PeopleService’ web service (included in the default installation).
Before you start make sure of the following (for this example):
You can now create a query based on the ‘get’ methods of the data service.
Here are some key points:
Copyright © 2024, InetSoft Technology Corp.