214 iSeries Access for Web V5R2 and WebSphere Host Publisher V4.0
4. Use the WebSphere Studio tool to create a Web Service. See 6.8.5, Creating Web
Services support in Host Publisher Studio on page 214.
5. Generate a sample application and run it to test your Web Service.
6. Complete development and testing of the application you imported in step 3.
7. Deploy the completed application. See 6.9.2, Deploying Enterprise JavaBeans on
page 238.
6.8.3 Accessing Host Publisher from a remote machine using Web Services
You may want to write a program that does not execute in WebSphere but that requires
access to an Integration Object. In earlier versions of Host Publisher, you developed Remote
Integration Objects (RIOs) to access Integration Object data from a Java program (applet or
application) running on a remote machine. With the current version, you can use Web
Services to perform this same function.
The primary advantages of using Web Services over RIOs are:
Web Services are strategic. Communication is based on a current, industry-standard suite
of standards, APIs, and implementations such as Web Services technology framework or
service-oriented architecture (SOA). They are based on the self-describing Web Service
Description Language (WSDL), which is a descriptive interface and protocol binding
language.
The messaging of Web Services is XML messaging, based on the industry standard
Simple Object Access Protocol (SOAP). SOAP is language-independent and
interoperable between different programming languages executing on different operating
systems.
Web Services can be published and dynamically located. Universal Description,
Discovery, and Integration (UDDI) is a registry mechanism that you can use to perform
lookups for Web Services descriptions. After lookup, a client application can dynamically
bind directly to Web Services provided by the service provider.
6.8.4 Specifying properties for Web Services Integration Objects
In Host Access and Database Access, the Options menu has a Web Services Integration
Object Properties selection. This option specifies file suffixes that are added to the names of
the files (.class files and .java files) associated with the Integration Object. The suffixes help
you easily locate the Web Services-specific files that are generated by Host Publisher Studio.
Default suffixes are provided, but you can use the Web Services Integration Objects
Properties option to specify different suffixes for the Web Services Integration Object you are
currently working on.
The default suffixes are:
Properties for the Properties Object file
Helper for the Helper Object
To change the default suffixes for all Web Services Integration Objects, edit the Studio.ini file.
6.8.5 Creating Web Services support in Host Publisher Studio
To create Web Services support, follow these steps:
1. To create Web Services support for a Host Publisher Integration Object, select the new
Create Web Services Integration Object Support option in Host Access or DB Access
(see Figure 6-84). This creates:

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.