WebSphere Web Services Client for C++, Version 1.0.1 Operating Systems: Linux, Solaris

Deploying web service client applications with handlers

Web service client applications that use handlers need some additional configuration before you deploy them.

Before you begin

This section assumes that you have already created and built your handlers by following the instructions in Developing and using client side handlers.

The steps below use the example myGetQuote client application and assume that a GetQuote service is running. (This service is with the samples supplied with WebSphere Application Server Version 5.0 or later). If you do not have the appropriate service, you must create the service code from the WSDL in the samples directory.

Why and when to perform this task

Once you have developed a client application as described in Developing and deploying web service client applications, you can add one or more service handlers that can be used as a request or response type.

Notes:

To deploy an application with handlers, complete the following steps.

Steps for this task

  1. Locate the Handler library.
  2. Check the WSDD file to ensure that it specifies the correct path for the handler as described in Handler definitions in WSDD file.
  3. Add the location of the WSDD file to the axiscpp.conf file as described in WSDD file path definition in axiscpp.conf file.
  4. If the WSDL file that you are using does not specify SOAP actions, change the second parameter (value) in the setTransportProperty method to the name of the service in the WSDD file. For example, if the service name is “Handler", you must call setTransportProperty( SOAPACTIONHEADER , "Handler") on the web service object.
  5. Rebuild the myGetQuote application.
  6. Run the myGetQuote application.
  7. Check that the myGetQuote application has returned the price of IBM shares in dollars.

Result

The example screen shot below shows the myGetQuote application run from the command line. To enable myGetQuote to run as shown below, the required handlers have previously been defined in the WSDD file, and the location of the WSDD file has been defined in the axiscpp.conf file.

Figure 1. myGetQuote run from command line (with handlers)
This screenshot shows the GetQuote application being run from the command
line.


Task topic

Terms of Use | Rate this page

Timestamp iconLast updated: 12 Dec 2005
(C) Copyright IBM Corporation 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)