Enabling Web Services Addressing support for JAX-WS applications using policy sets

For JAX-WS applications, you can enable WS-Addressing support after you deploy an application to the server, by creating or modifying policy sets, and attaching those policy sets to either a service or client application.

About this task

You can also configure the WS-Addressing support using other methods, for example in the code of the application, however this method overrides all other methods. Note that WS-Addressing support is enabled by default for service providers.

Procedure

  1. Ensure that you have a policy set that contains the WS-Addressing policy type. If you have to create a new policy set, or add the WS-Addressing policy to an existing policy set, refer to Gerenciando Conjuntos de Políticas Utilizando o Console Administrativo for instructions.
  2. Configure the WS-Addressing policy type according to the instructions in Configurando a Política WS-Addressing. Use the two settings to specify whether WS-Addressing is mandatory, and whether to use a synchronous or asynchronous message exchange pattern. The default settings are that WS-Addressing is not mandatory, and that both synchronous and asynchronous messaging patterns are used.
  3. Attach the policy set to a web service provider or client artifact, according to the instructions in Conectando um Conjunto de Política a um Artefato de Serviço.
  4. Optional: If you want to communicate the WS-Addressing policy settings to other servers and clients, configure policy sharing as described in Configurando um provedor de serviços para compartilhar sua configuração de política or Configurando a Política de Cliente para Utilizar uma Política de Provedor de Serviços. If policy sharing is enabled and the server and client cannot agree a policy, normal WS-Policy behavior applies (a policy error is produced).

Results

WS-Addressing properties are now included in the SOAP message header, and are processed by the server on receipt of the message.


Ícone que indica o tipo de tópico Tópico de Tarefa



Ícone de registro de data e hora Última atualização: July 9, 2016 7:57
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=twbs_wsa_dep_jaxws_policy
Nome do arquivo: twbs_wsa_dep_jaxws_policy.html