Set Web services client bindings


 

+

Search Tips   |   Advanced Search

 

When a Web services application is deployed into WAS, an instance is created for each application or module. The instance contains deployment information, including client bindings.

Deploy a Web service into the WAS instance.

You must know the topology of the URL endpoint address of the Web services servers and which Web service the client depends upon. You can view the deployment descriptors in the admin console to find the topology information.

The client bindings define the WSDL file name and preferred ports. The relative path of a Web service in a module is specified within a WSDL file that contains the actual URL to be used for requests. The address is only needed if the original WSDL file did not contain a URL, or when a different address is needed. For a service endpoint with multiple ports, we need to define an alternative WSDL file name.

The following steps describe how to edit bindings for a Web service after these bindings are deployed on a server. When one Web service communicates with another Web service, configure the client bindings to access the downstream Web service.

You can also configure client bindings with wsadmin.

To configure client bindings through the admin console:

  1. Open the admin console.

  2. Go to...

    Applications | Enterprise Applications | application_instance | Manage Modules | module_instance | Web services client bindings

  3. Find the Web service you want to update.

    The Web services are listed in the Web Service field.

  4. Select the WSDL file name from the drop down box in the WSDL file name field.

  5. Click Edit in the Preferred port mappings field to configure the default port to use.

    1. Specify the port type and the preferred ports in the Port type and Preferred ports fields.

      Set the preferred port enables you to select an optimal port implementation use non-SOAP protocols. See RMI-IIOP Web services using JAX-RPC for more information about using non-SOAP protocols.

    2. Click Apply and OK.

  6. Click Edit in the Port information field to configure the request timeout, the overridden endpoint, and the overridden binding namespace for a port.

    Set the request timeout accommodates complex topologies that can have multiple cascaded Web services that involve multiple hops or long-running services.

    Configure Timeout values based on observed behavior of the overall system as integration proceeds. For example, a Web service client might time out because of changing network conditions or the performance of an external Web service. When we have applications containing Web services clients that timeout, we can change the request time out values for the clients.

    You can specify an endpoint URL to override the current endpoint. A client invoking a request on this port uses this endpoint instead of the endpoint specified in the WSDL file. You can specify the Overridden endpoint URL value for both JAX-WS clients and JAX-RPC clients.

    Supported configurations: The Overridden endpoint URL field is applicable for both JAX-WS and JAX-RPC clients. The other fields on this admin console page are only applicable for JAX-RPC clients. sptcfg

    1. Click Apply and OK.

 

What to do next

Cycle the application and verify the expected behavior of the Web service.


Web services client bindings

 

Related tasks

Set Web service client-preferred port mappings with wsadmin
Set Web service client port information with wsadmin
Deploy Web services applications onto appservers
Set a Web service client deployed WSDL file name with wsadmin