use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class WSARJTXClient method getTerminationCoordinatorRPCPort.
public static TerminationCoordinatorRPCPortType getTerminationCoordinatorRPCPort(W3CEndpointReference endpointReference, String action, MAP map) {
final TerminationCoordinatorRPCService service = getTerminationCoordinatorRPCService();
final TerminationCoordinatorRPCPortType port = PrivilegedServiceHelper.getInstance().getPort(service, endpointReference, TerminationCoordinatorRPCPortType.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();
MAP requestMap = AddressingHelper.outboundMap(requestContext);
map.setAction(action);
AddressingHelper.installCallerProperties(map, requestMap);
AddressingHelper.configureRequestContext(requestContext, requestMap.getTo(), action);
return port;
}
use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class WSARJTXClient method getTerminationCoordinatorPort.
public static TerminationCoordinatorPortType getTerminationCoordinatorPort(W3CEndpointReference endpointReference, String action, MAP map) {
final TerminationCoordinatorService service = getTerminationCoordinatorService();
final TerminationCoordinatorPortType port = PrivilegedServiceHelper.getInstance().getPort(service, endpointReference, TerminationCoordinatorPortType.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();
MAP requestMap = AddressingHelper.outboundMap(requestContext);
map.setAction(action);
AddressingHelper.installCallerProperties(map, requestMap);
AddressingHelper.configureRequestContext(requestContext, requestMap.getTo(), action);
return port;
}
use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class ATInteropClient method getInitiatorPort.
public static InitiatorPortType getInitiatorPort(MAP map, String action) {
InitiatorService service = getInitiatorService();
InitiatorPortType port = service.getPort(InitiatorPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
String to = map.getTo();
/*
* we have to add the JaxWS WSAddressingClientHandler because we cannot specify the WSAddressing feature
List<Handler> customHandlerChain = new ArrayList<Handler>();
customHandlerChain.add(new WSAddressingClientHandler());
bindingProvider.getBinding().setHandlerChain(customHandlerChain);
*/
Map<String, Object> requestContext = bindingProvider.getRequestContext();
map.setAction(action);
map.setFrom(getParticipant());
AddressingHelper.configureRequestContext(requestContext, map, to, action);
return port;
}
use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class WSBAClient method getParticipantCompletionCoordinatorPort.
// get ports where we HAVE an endpoint to create the port from
public static BusinessAgreementWithParticipantCompletionCoordinatorPortType getParticipantCompletionCoordinatorPort(W3CEndpointReference endpointReference, String action, MAP map) {
final BusinessAgreementWithParticipantCompletionCoordinatorService service = getParticipantCompletionCoordinatorService();
final BusinessAgreementWithParticipantCompletionCoordinatorPortType port = PrivilegedServiceHelper.getInstance().getPort(service, endpointReference, BusinessAgreementWithParticipantCompletionCoordinatorPortType.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 WSBAClient method getParticipantCompletionParticipantPort.
public static BusinessAgreementWithParticipantCompletionParticipantPortType getParticipantCompletionParticipantPort(W3CEndpointReference endpointReference, String action, MAP map) {
final BusinessAgreementWithParticipantCompletionParticipantService service = getParticipantCompletionParticipantService();
final BusinessAgreementWithParticipantCompletionParticipantPortType port = PrivilegedServiceHelper.getInstance().getPort(service, endpointReference, BusinessAgreementWithParticipantCompletionParticipantPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
configureEndpointPort(bindingProvider, action, map);
return port;
}
Aggregations