Chapter 8. Router solutions using Web Services Gateway 199
Figure 8-35 Web service development for source application
Let’s walk through the process shown in Figure 8-35 for our source application.
When developing a Web services client, you must have access to a server
application. This could be developed by a separate department within your
organization, which will supply the WSDL file defining their server. In our
example, we use the target application described in 8.6.2, “Web service enable
the target application” on page 170.
Web service-enabling our source application is simply a matter of generating the
required deployment descriptors and proxy classes from the gateway-generated
WSDL files for the target application.
1. In the previous process, you exported the WSDL files from the Web Services
Gateway to your source application. Before proceeding it is a good idea to
test the operation of the Web service, both directly and through the gateway.
It is simple to do this using the Web Services Explorer in WebSphere Studio.
a. Right-click the -Impl WSDL file in the source application, and select Web
Services
→ Test with Web Services Explorer (Figure 8-36).
b. Select getDeliveryDate and enter a part number.
c. Click Go.
Application
Assembler
Deployer
Application
Component
Provider
develop package deploy
WebSphere
Studio
Web
JAR
WebSphere
Studio
WebSphere
Admin
Console
WebSphere
Admin
Command
Line Tool
WSDL2
Java
Command
Line Tool
Target
WSDL
WebSphere
Application
Server
Enterprise
Archive
Enterprise
Archive
Set of
Components
Deployment
Descriptors,
Proxy classes
Note: If you are connecting directly to the Web service without going through
the Web Services Gateway, the WSDL comes directly from the target system.
If you are using a Web Services Gateway, the WSDL is created and stored at
the Gateway.