use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class InteropClient method getParticipantPort.
// don't think we ever need this as we get a registration port from the endpoint ref returned by
// the activation port request
public static ParticipantPortType getParticipantPort(MAP map, String action) {
Sc007Service service = getSc007Service();
ParticipantPortType port = service.getPort(ParticipantPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
String to = map.getTo();
List<Handler> customHandlerChain = new ArrayList<Handler>();
/*
* we need to add the coordination context handler in the case where we are passing a
* coordination context via a header element
*/
customHandlerChain.add(new CoordinationContextHandler());
/*
* we no longer have to add the JaxWS WSAddressingClientHandler because we can specify the WSAddressing feature
customHandlerChain.add(new WSAddressingClientHandler());
*/
bindingProvider.getBinding().setHandlerChain(customHandlerChain);
Map<String, Object> requestContext = bindingProvider.getRequestContext();
map.setAction(action);
map.setFrom(getInitiator());
AddressingHelper.configureRequestContext(requestContext, map, to, action);
return port;
}
use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class WSATClient method getCompletionInitiatorPort.
public static CompletionInitiatorPortType getCompletionInitiatorPort(final W3CEndpointReference endpointReference, String action, MAP map) {
final CompletionInitiatorService service = getCompletionInitiatorService();
final CompletionInitiatorPortType port = PrivilegedServiceHelper.getInstance().getPort(service, endpointReference, CompletionInitiatorPortType.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 getCompletionCoordinatorRPCPort.
public static CompletionCoordinatorRPCPortType getCompletionCoordinatorRPCPort(final W3CEndpointReference endpointReference, String action, MAP map) {
final CompletionCoordinatorRPCService service = getCompletionCoordinatorRPCService();
final CompletionCoordinatorRPCPortType port = PrivilegedServiceHelper.getInstance().getPort(service, endpointReference, CompletionCoordinatorRPCPortType.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 getCoordinatorPort.
// fetch ports when we have NO endpoint
public static CoordinatorPortType getCoordinatorPort(String action, MAP map) {
final CoordinatorService service = getCoordinatorService();
final CoordinatorPortType port = PrivilegedServiceHelper.getInstance().getPort(service, CoordinatorPortType.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 WSATClient method getParticipantPort.
public static ParticipantPortType getParticipantPort(final W3CEndpointReference endpointReference, String action, MAP map) {
final ParticipantService service = getParticipantService();
final ParticipantPortType port = PrivilegedServiceHelper.getInstance().getPort(service, endpointReference, ParticipantPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
configureEndpointPort(bindingProvider, action, map);
return port;
}
Aggregations