public static TerminationCoordinatorPortType getTerminationCoordinatorPort(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
TerminationCoordinatorService service = getTerminationCoordinatorService();
// TerminationCoordinatorPortType port = service.getPort(endpointReference, TerminationCoordinatorPortType.class, new AddressingFeature(true, true));
TerminationCoordinatorPortType port = service.getPort(endpointReference, TerminationCoordinatorPortType.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>();