230 iSeries Access for Web V5R2 and WebSphere Host Publisher V4.0
Figure 6-102 Generated files
Running the Web Services sample generated by WebSphere Studio
Application Developer
Now we are ready to run our example within the WebSphere Studio Application Developer
Test Environment:
1. Start the Host Publisher Server. Right-click the StartHPRTE servlet and choose Run on
Server.
2. Open your Web Project. Expand webApplication-> sample->
Your
WSHelper, and select
TestClient.jsp. Right-click TestClient.jsp and select Run on Server. See Figure 6-103.
Note: Be sure that Host Publisher Server starts successfully as shown in Figure 6-103.
SOAP-XML admin for displaying,
starting, and stopping services.
Sample Web Services client program.
Proxy class, that you can use to access
the Web Service when you develop
a Web Service client.
.wsdl files that describe the interface
of the Web Service and where an
implementation is running.
Chapter 6. Using Host Publisher Studio to develop J2EE applications 231
Figure 6-103 Starting the TestClient.jsp
3. Choose the processWSRequest method.
4. Set the input properties to:
– hpubendtype = 0
– hpuberroroccurred = 0
– hpubstarttype = 0
– Type any input that the Integrated Objects requires. See Figure 6-104 as an example.
In this example, we set Boat Length to 720 and Boat Type to S.
Click Invoke.
Chapter 6. Using Host Publisher Studio to develop J2EE applications 233
Figure 6-105 Results
Deploying the completed application to WebSphere Advanced Edition or
Advanced Single Server Edition
Follow these steps:
1. Go to the Navigator pane and change the proxy URL to point to your production Simple
Object Access Protocol (SOAP) server URL. See Figure 6-106.
234 iSeries Access for Web V5R2 and WebSphere Host Publisher V4.0
Figure 6-106 Changing the proxy URL
2. Export your project to an .ear file. Select File-> Export and select the export destination
EAR file. Then click Next.
3. The EAR Export window opens. Select your project, BoatWS, and your directory. Then
click Finish. See Figure 6-107.
Get iSeries Access for Web V5R2 and WebSphere Host Publisher V4.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.