WSAddressing policy and binding properties
Use the -attributes parameter for the setPolicyType and setBinding commands to specify additional configuration information for the WSAddressing policy and policy set binding. Application and system policy sets use the WSAddressing policy and binding.
WSAddressing is an interoperability standard for addressing Web services and providing addressing information in messages. For more information, see the W3C Candidate Recommendation (CR) versions of the WS-Addressing core and SOAP specifications.
- Use o parâmetro -attributes para os comandos getPolicyType e getBinding para visualizar as propriedades para a configuração de política e ligação. Para obter um atributo, transmita o nome da propriedade para o comando getPolicyType ou getBinding.
- Use o parâmetro -attributes para os comandos setPolicyType e setBinding para incluir, atualizar ou remover propriedades das configurações de política e ligação. Para incluir ou atualizar um atributo, especifique o nome da propriedade e o valor. Os comandos setPolicyType e setBinding atualizarão o valor se o atributo existir, ou incluirão o atributo e o valor se o atributo não existir. Para remover um atributo, especifique o valor como uma cadeia vazia (""). O parâmetro -attributes aceita um objeto de propriedades.

Para suportar um ambiente de célula mista, o WebSphere Application Server suporta ligações de Versão 7.0 e Versão 6.1. As ligações gerais no nível da célula são específicas à Versão 7.0 e posterior e as ligações específicas do aplicativo permanecem na versão que aplicativo requer. Quando o usuário cria uma ligação específica do aplicativo, o servidor de aplicativos determina a versão de ligação exigida para uso do aplicativo.
WSAddressing policy properties
- usingAddressing
- Specifies whether a WS-Addressing SOAP header is included on messages.
Use one of the following values:
- required
- WS-Addressing is mandatory. Servers return an error if they receive a message that does not contain a WS-Addressing header. Clients always include WS-Addressing headers in SOAP messages.
- optional
- WS-Addressing is not mandatory. Servers do not generate an error if they receive a message that does not contain a WS-Addressing header. Clients might not include WS-Addressing headers in SOAP messages, for example, if WS-Policy is enabled and the server does not specify that WS-Addressing is mandatory.
- wsaMode
- Specifies the messaging style that this policy set supports. Use
one of the following values:
- WSA_SYNC
- Response messages must be targeted at the WS-Addressing anonymous URI.
- WSA_ASYNC
- Response messages must not be targeted at the WS-Addressing anonymous URI.
- WSA_BOTH
- The targeting of response messages is not restricted.
AdminTask.setPolicyType('[-policySet "myPolicySet" -policyType WSAddressing
-attributes "[[usingaddressing required][wsaMode WSA_SYNC]]"]')
WSAddressing binding properties
- preventWLM
- Specifies whether to prevent workload management for references to endpoints that were created by the application programming interface (API) in a cluster environment. Messages that target Endpoint References (EPRs) within a cluster environment are workload managed by default.
- Preventing workload management routes messages that target EPRs
to the node or server on which the EPR was created. You might disable
workload management if the endpoint maintains the in-memory state,
which has not been replicated across other nodes or servers within
the cluster.For example, the following command prevents workload management for a cell-wide general binding, from the WSAddressing policy.
AdminTask.setBinding('[-bindingLocation "" -bindingName cellWideBinding2 -policyType WSAddressing -attributes "[preventWLM true]"]')