public static TerminationParticipantPortType getTerminationParticipantPort(W3CEndpointReference endpointReference,
AttributedURI action,
AddressingProperties addressingProperties)
{
// TODO - we need the 2.1 verison of Service so we can specify that we want to use the WS Addressing feature
TerminationParticipantService service = getTerminationParticipantService();
// TerminationParticipantPortType port = service.getPort(endpointReference, TerminationParticipantPortType.class, new AddressingFeature(true, true));
TerminationParticipantPortType port = service.getPort(endpointReference, TerminationParticipantPortType.class);
BindingProvider bindingProvider = (BindingProvider)port;
/*
* we have to add the JaxWS WSAddressingClientHandler because we cannoy specify the WSAddressing feature
*/
List<Handler> customHandlerChain = new ArrayList<Handler>();