public static RegistrationPortType getRegistrationPort(final W3CEndpointReference endpointReference, String action, String messageID) { final RegistrationService service = getRegistrationService(); final RegistrationPortType port = PrivilegedServiceHelper.getInstance().getPort(service, endpointReference, RegistrationPortType.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 map = getRegistrationPortMap(requestContext); AddressingHelper.installActionMessageID(map, action, messageID); // we should not need to do this but JBossWS does not pick up the value in the addressing properties AddressingHelper.configureRequestContext(requestContext, map.getTo(), action); return port; }
public static ActivationPortType getActivationPort(MAP map, String action) { ActivationService service = getActivationService(); ActivationPortType port = service.getPort(ActivationPortType.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(); AddressingHelper.configureRequestContext(requestContext, map, to, action); return port; }
final ActivationPortType port = WSCOORClient.getActivationPort(map, CoordinationConstants.WSCOOR_ACTION_CREATE_COORDINATION_CONTEXT); return createCoordinationContextOperation(port, request);
ActivationCoordinatorClient client = ActivationCoordinatorClient.getClient(); response = client.sendCreateCoordination(map, coordinationTypeURI, expiresValue, currentContext) ; return response.getCoordinationContext();
registerType.setProtocolIdentifier(protocolIdentifier); registerType.setParticipantProtocolService(participantProtocolService); final RegistrationPortType port = WSCOORClient.getRegistrationPort(endpointReference, CoordinationConstants.WSCOOR_ACTION_REGISTER, messageID); final RegisterResponseType response = registerOperation(messageID, port, registerType); return response.getCoordinatorProtocolService();
public static RegistrationPortType getRegistrationPort(W3CEndpointReference endpointReference, String action, String messageID) { RegistrationService service = getRegistrationService(); RegistrationPortType port = service.getPort(endpointReference, RegistrationPortType.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 map = AddressingHelper.outboundMap(requestContext); AddressingHelper.installActionMessageID(map, action, messageID); // we should not need to do this but JBossWS does not pick up the value in the addressing properties AddressingHelper.configureRequestContext(requestContext, map.getTo(), action); return port; } }
ActivationPortType port = WSCOORClient.getActivationPort(map, CoordinationConstants.WSCOOR_ACTION_CREATE_COORDINATION_CONTEXT);
ActivationCoordinatorClient client = ActivationCoordinatorClient.getClient(); response = client.sendCreateCoordination(map, coordinationTypeURI, expiresValue, currentContext) ; return response.getCoordinationContext();
public static ActivationPortType getActivationPort(MAP map, String action) { ActivationService service = getActivationService(); ActivationPortType port = service.getPort(ActivationPortType.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(); AddressingHelper.configureRequestContext(requestContext, map, to, action); return port; }
RegistrationPortType port = WSCOORClient.getRegistrationPort(endpointReference, CoordinationConstants.WSCOOR_ACTION_REGISTER, messageID); response = port.registerOperation(registerType); return response.getCoordinatorProtocolService();
public static RegistrationPortType getRegistrationPort(W3CEndpointReference endpointReference, String action, String messageID) { RegistrationService service = getRegistrationService(); RegistrationPortType port = service.getPort(endpointReference, RegistrationPortType.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 map = AddressingHelper.outboundMap(requestContext); AddressingHelper.installActionMessageID(map, action, messageID); // we should not need to do this but JBossWS does not pick up the value in the addressing properties AddressingHelper.configureRequestContext(requestContext, map.getTo(), action); return port; } }
ActivationPortType port = WSCOORClient.getActivationPort(map, CoordinationConstants.WSCOOR_ACTION_CREATE_COORDINATION_CONTEXT);
ActivationCoordinatorClient client = ActivationCoordinatorClient.getClient(); response = client.sendCreateCoordination(map, coordinationTypeURI, expiresValue, currentContext) ; return response.getCoordinationContext();
public static ActivationPortType getActivationPort(MAP map, String action) { ActivationService service = getActivationService(); ActivationPortType port = service.getPort(ActivationPortType.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(); AddressingHelper.configureRequestContext(requestContext, map, to, action); return port; }
RegistrationPortType port = WSCOORClient.getRegistrationPort(endpointReference, CoordinationConstants.WSCOOR_ACTION_REGISTER, messageID); response = port.registerOperation(registerType); return response.getCoordinatorProtocolService();
public static RegistrationPortType getRegistrationPort(W3CEndpointReference endpointReference, String action, String messageID) { RegistrationService service = getRegistrationService(); RegistrationPortType port = service.getPort(endpointReference, RegistrationPortType.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 map = AddressingHelper.outboundMap(requestContext); AddressingHelper.installActionMessageID(map, action, messageID); // we should not need to do this but JBossWS does not pick up the value in the addressing properties AddressingHelper.configureRequestContext(requestContext, map.getTo(), action); return port; } }
ActivationPortType port = WSCOORClient.getActivationPort(map, CoordinationConstants.WSCOOR_ACTION_CREATE_COORDINATION_CONTEXT);
ActivationCoordinatorClient client = ActivationCoordinatorClient.getClient(); response = client.sendCreateCoordination(map, coordinationTypeURI, expiresValue, currentContext) ; return response.getCoordinationContext();
public static ActivationPortType getActivationPort(MAP map, String action) { final ActivationService service = getActivationService(); final ActivationPortType port = PrivilegedServiceHelper.getInstance().getPort(service, ActivationPortType.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(); AddressingHelper.configureRequestContext(requestContext, map, to, action); return port; }
RegistrationPortType port = WSCOORClient.getRegistrationPort(endpointReference, CoordinationConstants.WSCOOR_ACTION_REGISTER, messageID); response = port.registerOperation(registerType); return response.getCoordinatorProtocolService();