Log out?

eiConsole Building a Web Service

eiConsole v.13.17R1
Documentation

eiConsole Tutorial Basic

eiConsole Building a Web Service

In the Route File Management dialog, create a new Route by clicking the Add Route button, shown highlighted in red below:


building-web-service-001-13-16-r3

Enter in a name for the new Route in the provided dialog and click Ok. For this tutorial, we’ll use Simple Web Service:


building-web-service-002-13-16-r3

Select the newly created route Simple Web Service in the Basic View Interface Overview panel and double-click to edit.


building-web-service-003-13-16-r3

Your main eiConsole Grid should resemble this below:

Note: the default settings for both the Source Transform and Target Transforms are Relay (System Format).


building-web-service-004-13-16-r3

We’ll want to define an arbitrary, non-transforming Format. Select the Source Transform, as highlighted below:


building-web-service-005-13-16-r3

We’ll want to leave it set to the default, Relay (System Format).

Note: the panel at the bottom allows us to select Formats or add new ones. If we wanted to add a new one, we’d click the Add Format button and enter the name of a new Format.

Next, select the Target Transform, shown highlighted below:


building-web-service-006-13-16-r3

You’ll want to leave the Format at Relay (System Format). If you wanted to change the format you would select the Target Transform icon, click the Add Format button, or select from the drop down via the Format Profile list box.


building-web-service-007-13-16-r3

With our Source and Target Formats set, we can now proceed to the Listener to configure the web service. Select the Listener stage, shown below:


building-web-service-008-13-16-r3

The first thing to do is select the Listener’s type via the Listener Type list box. Select the Document-Style Web Service from the list, as shown below:

building-web-service-009-13-16-r3

The eiConsole will provide a name automatically, which it will derive from the current Route name and selected Listener type. We’ll ignore this field for now. We have one particular configuration item we need to fill out, however – Service Name:


building-web-service-010-13-16-r3

Service Name defines the name of the service you want to create and host. For our example, we’ll supply it with exampleService.

The next field, Axis URL, allows you to redefine the relative path for the underlying service hosting mechanism. You should leave this blank unless you have a particular reason for specifying otherwise.


building-web-service-010a-13-16-r3

In the Advanced tab, we’ll need to provide the port number the service listens under via the Port configuration item, shown below:


building-web-service-010b-13-16-r3

Port will need to match the port that the Axis service is hosted under. In the eiConsole testing and emulator modes, this will probably be 9000. In an Apache Tomcat environment, the default port will be 8080. Specify 9000 for now.

That’s all that’s required for the web service end of things. We’ll proceed to the Transport now, shown highlighted below:


building-web-service-011-13-16-r3

In the Transport Type list box, select the Directory / File Transport, as shown below:


building-web-service-012-13-16-r3

The Directory / File Transport only needs three of its items filled out in order to function: Target directory, Target file name and Target file extension. For our example, we’ll write out straight to the C:/out drive with a file named “test.txt”.

Mac users, we’ll write out straight to the Macintosh HD with a file named “test.txt“.


building-web-service-013-13-16-r3

The Route itself is now configured and should be complete. We’ll need to save the Current Route.

building-web-service-014-13-16-r1

We’ll need to test this configuration via the emulator mode, which can be accessed via the Route menu Local eiPlatform Emulator shown below:


building-web-service-014a-13-16-r3

This will raise the EIP Emulator dialog, shown below:


building-web-service-015-13-16-r3

Click Start Emulator to start the eiPlatform emulator:


building-web-service-016-13-16-r3

You should see some logging information appear in the dialog. It takes up to 1.5 minutes (90 seconds) for web services to deploy correctly, so wait for this interval and you should see lines in the dialog log similar to those highlighted below:


building-web-service-016a-13-16-r3

We’ll now open up our web browser and navigate to the eiPlatform emulator’s services page, typically located at http://localhost:9000/eip/services. But you should to check what port is used in your emulator. In our case it is 8443.

building-web-service-017-13-16-r3

We edit the path to: http://localhost:8443/eip/services. You should see the service you added shown (highlighted below):

building-web-service-018-13-16-r1
You can access the WSDL for your service by selecting the provided link:

building-web-service-019-13-16-r3

The “targetNamespace” attribute in the WSDL will provide a full service path, as highlighted below:

building-web-service-020-13-16-r3

    to post comments

    This is a unique website which will require a more modern browser to work! Please upgrade today!

    Thanks!

    Our editors are notified.

    Close