use of javax.xml.ws.soap.AddressingFeature in project narayana by jbosstm.
the class WSATClient method getCoordinatorPort.
// fetch ports when we HAVE an endpoint
public static CoordinatorPortType getCoordinatorPort(final W3CEndpointReference endpointReference, String action, MAP map) {
final CoordinatorService service = getCoordinatorService();
final CoordinatorPortType port = PrivilegedServiceHelper.getInstance().getPort(service, endpointReference, CoordinatorPortType.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 getParticipantPort.
public static ParticipantPortType getParticipantPort(String action, MAP map) {
final ParticipantService service = getParticipantService();
final ParticipantPortType port = PrivilegedServiceHelper.getInstance().getPort(service, ParticipantPortType.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 WSARJTXClient method getTerminationParticipantPort.
// 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 TerminationParticipantPortType getTerminationParticipantPort(W3CEndpointReference endpointReference, String action, MAP map) {
final TerminationParticipantService service = getTerminationParticipantService();
final TerminationParticipantPortType port = PrivilegedServiceHelper.getInstance().getPort(service, endpointReference, 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();
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 InteropClient method getInitiatorPort.
public static InitiatorPortType getInitiatorPort(MAP map, String action) {
Sc007Service service = getSc007Service();
InitiatorPortType port = service.getPort(InitiatorPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
String to = map.getTo();
/*
* 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.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 SoapFaultClient method getSoapFaultPort.
private static org.jboss.jbossts.xts.soapfault.SoapFaultPortType getSoapFaultPort(final MAP map, final String action) {
org.jboss.jbossts.xts.soapfault.SoapFaultService service = getSoapFaultService();
org.jboss.jbossts.xts.soapfault.SoapFaultPortType port = service.getPort(org.jboss.jbossts.xts.soapfault.SoapFaultPortType.class, new AddressingFeature(true, true));
BindingProvider bindingProvider = (BindingProvider) port;
String to = map.getTo();
/*
* 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();
if (action != null) {
map.setAction(action);
}
AddressingHelper.configureRequestContext(requestContext, map, to, action);
return port;
}
Aggregations