use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class WSATClient method getCompletionCoordinatorPort.
public static CompletionCoordinatorPortType getCompletionCoordinatorPort(final W3CEndpointReference endpointReference, String action, MAP map) {
final CompletionCoordinatorService service = getCompletionCoordinatorService();
final CompletionCoordinatorPortType port = PrivilegedServiceHelper.getInstance().getPort(service, endpointReference, CompletionCoordinatorPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
configureEndpointPort(bindingProvider, action, map);
return port;
}
use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class WSATClient method getCompletionCoordinatorPort.
public static CompletionCoordinatorPortType getCompletionCoordinatorPort(String action, MAP map) {
final CompletionCoordinatorService service = getCompletionCoordinatorService();
final CompletionCoordinatorPortType port = PrivilegedServiceHelper.getInstance().getPort(service, CompletionCoordinatorPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
configurePort(bindingProvider, action, map);
return port;
}
use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class TerminationClient method getTerminationParticipantPort.
public static TerminationParticipantPortType getTerminationParticipantPort(MAP map) {
TerminationParticipantService service = getTerminationParticipantService();
TerminationParticipantPortType port = service.getPort(TerminationParticipantPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
Map<String, Object> requestContext = bindingProvider.getRequestContext();
AddressingHelper.configureRequestContext(requestContext, map);
return port;
}
use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class TerminationClient method getRegistrationPort.
public static TerminationCoordinatorPortType getRegistrationPort(MAP map) {
TerminationCoordinatorService service = getTerminationCoordinatorService();
TerminationCoordinatorPortType port = service.getPort(TerminationCoordinatorPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
Map<String, Object> requestContext = bindingProvider.getRequestContext();
AddressingHelper.configureRequestContext(requestContext, map);
AddressingHelper.configureRequestContext(requestContext, map);
return port;
}
use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class WSARJTXClient method getTerminationParticipantPort.
// we use this in situations where we don't have a proper endpoint but we do have caller addressing properties
public static TerminationParticipantPortType getTerminationParticipantPort(InstanceIdentifier identifier, String action, MAP map) {
final TerminationParticipantService service = getTerminationParticipantService();
final TerminationParticipantPortType port = PrivilegedServiceHelper.getInstance().getPort(service, TerminationParticipantPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
/*
* we no longer have to add the JaxWS WSAddressingClientHandler because we can specify the WSAddressing feature
List<Handler> customHandlerChain = new ArrayList<Handler>();
customHandlerChain.add(new WSAddressingClientHandler());
bindingProvider.getBinding().setHandlerChain(customHandlerChain);
*/
Map<String, Object> requestContext = bindingProvider.getRequestContext();
Element refParam = InstanceIdentifier.createInstanceIdentifierElement(identifier.getInstanceIdentifier());
map.addReferenceParameter(refParam);
map.setAction(action);
AddressingHelper.configureRequestContext(requestContext, map, map.getTo(), action);
return port;
}
Aggregations