WebSphere WebSphere Application Server Network Deployment, Version 6.0.x Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Creating a new proxy service configuration

You can set the Web services gateway to act purely as a proxy for your service, then use JAX-RPC handler lists to set the endpoints for incoming request messages for the service.

Before you begin

For a high-level task view of how you configure the Web services gateway as part of an overall SIBus Web services configuration, see Enabling Web services through service integration technologies.

You configure each proxy service for a specific gateway instance, so you must create the gateway instance before you can configure any proxy services for it.

You can create a new proxy service through the administrative console as described in this task, or you can create a new proxy service through the command line.

Why and when to perform this task

When you create a new proxy service configuration, the gateway takes no action with regard to that service other than to invoke it. When you configure a proxy service, you also configure a JAX-RPC handler list that uses the javax.xml.rpc.service.endpoint.address to set the target endpoint for the service. You then attach the handler list to the inbound port for the proxy service.

A proxy service configuration has no actual target services and therefore no WSDL that the gateway can use to configure the service invocation. A generic proxy WSDL file is used to configure the basic parameters for the invocation call (for example which binding to use), but you can override the default by supplying your own equivalent generic proxy WSDL file. If the JAX-RPC handler list is not deployed, then the gateway attempts to send all requests to the fake Web address specified in the <soap:target address> tag in the proxy WSDL file.

For more detailed information, see JAX-RPC handlers and proxy operation.

To create a new proxy service configuration through the administrative console, complete the following steps:

Steps for this task

  1. Create a JAX-RPC handler that uses the javax.xml.rpc.service.endpoint.address to set the target endpoint for the service. It is up to you to decide how you want to establish the target endpoint, and to create and configure the javax.xml.rpc.service.endpoint.address JAX-RPC handler. For information about creating JAX-RPC handlers, see the IBM developerWorks article A developer introduction to JAX-RPC, Part 2: Mine the JAX-RPC specification to improve Web service interoperability.
  2. Create a new JAX-RPC handler configuration for the handler that sets the target endpoint for this service.
  3. Create a new JAX-RPC handler list, select the handler that sets the target endpoint for this service and add it to the handler list.
  4. Start the administrative console.
  5. In the navigation pane, click Service integration > Buses > [Content Pane] bus_name > [Services] Web service gateway instances > [Content Pane] instance_name > Proxy Services. The proxy services collection form is displayed.
  6. Click New. The New proxy service wizard is displayed.
  7. Use the wizard to create the new proxy service configuration by completing the following steps. For more information about the properties that you set with the wizard, see Proxy services settings.
    1. Specify the proxy service name, proxy port point, service destinations and mediations.
      Note:
      • Choose a proxy service name that is unique across all gateway and proxy services within the current gateway instance. If you enter a name that is not unique, an error message is displayed.
      • The proxy port point is the point at which the proxy port destination is to be located.
      • You need not provide proxy destination names. If you leave either of these fields blank, a default name is generated for you when the wizard completes its operation. The default names are not displayed on the panel. They are constructed as follows:
        • The request destination name is the same as the proxy service name. For example: myProxyService.
        • The reply destination name is the same as the request destination name, followed by "Reply". For example: myProxyServiceReply.
      • The lists of available mediations contain all mediations that are currently deployed to this service integration bus. If you have created a mediation and deployed it to the bus, then it is available for selection in both these lists. If you do not want to use a mediation with this proxy service, select none from either or both selection lists.
      • Bus members are application servers or clusters that are added to this bus. The Request mediation bus member and the Response mediation bus member properties define the bus members to which the corresponding mediation is assigned. If you select a mediation, then you must assign it to a bus member; If you set the Request mediation or the Response mediation property value to (none), you must also change the corresponding bus member property value to (none).

        [Version 6.0.1 and earlier] If you do not do this, no error message is displayed but you cannot move on to the next wizard panel.

        [Version 6.0.2] If you do not do this, the administrative console displays an error message.

      • A generic proxy WSDL file is used to configure the basic parameters for the invocation call (for example which binding to use), but you can override the default by typing the location of your replacement generic WSDL file in the Proxy WSDL override URL field.
    2. Select endpoint listeners for the inbound configuration of this proxy service.
  8. Click Finish.

If the processing completes successfully, the list of proxy services for this gateway instance is updated to include the new proxy service. Otherwise, an error message is displayed.

Ensure that all service requesters append an operationMode HTTP query string parameter to the Web address for the proxy service. The value of this parameter is either oneway or requestResponse, and the default is requestResponse. For example, if the Web address of the proxy service is
http://host_name:port_number/wsgwsoaphttp1/soaphttpengine/your_bus/ProxyService/ProxyServiceInboundPort
then requesting clients indicate that they are sending a one-way request by using the following URL:
http://host_name:port_number/wsgwsoaphttp1/soaphttpengine/your_bus/ProxyService/ProxyServiceInboundPort?operationMode=oneway
Related concepts
JAX-RPC handlers and proxy operation
Related reference
Creating a new proxy service configuration using the wsadmin tool
Deleting a proxy service configuration using the wsadmin tool
Related information
Proxy services settings

Task topic

Terms of Use | Feedback

Last updated: 15 Mar 2007
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.pmc.nd.doc\tasks\twsg_proxy_new.html

© Copyright IBM Corporation 2004, 2007. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)