private TerminationCoordinatorRPCPortType getPort(final W3CEndpointReference endpoint, final MAP map, final String action) { return WSARJTXClient.getTerminationCoordinatorRPCPort(endpoint, action, map); } }
private TerminationParticipantPortType getPort(final MAP map, final InstanceIdentifier identifier, final String action) { // create a port specific to the incoming addressing properties AddressingHelper.installNoneReplyTo(map); return WSARJTXClient.getTerminationParticipantPort(identifier, action, map); } }
private TerminationCoordinatorPortType getPort(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier, final String action) { // we only need the message id from the addressing properties as the address is already wrapped up // in the ednpoint reference. also the identifier should already be installed in the endpoint // reference as a reference parameter so we don't need that either AddressingHelper.installNoneReplyTo(map); return WSARJTXClient.getTerminationCoordinatorPort(endpoint, action, map); } }
/** * Send a completed request. * @param map addressing context initialised with to and message ID. * @param identifier The identifier of the initiator. * @throws com.arjuna.webservices.SoapFault For any errors. * @throws java.io.IOException for any transport errors. */ public void sendCompleted(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint coordinator = getCoordinator(participant); AddressingHelper.installFromFaultTo(map, coordinator, identifier); final TerminationParticipantPortType port = getPort(participant, map, identifier, completedAction); final NotificationType completed = new NotificationType(); port.completedOperation(completed); }
/** * Send a fault. * @param map The addressing context. * @param soapFault The SOAP fault. * @param identifier The arjuna instance identifier. * @throws com.arjuna.webservices.SoapFault For any errors. * @throws java.io.IOException for any transport errors. */ public void sendSoapFault(final SoapFault soapFault, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { final TerminationParticipantPortType port = getPort(map, identifier, soapFaultAction); SoapFault11 soapFault11 = (SoapFault11)soapFault; Fault fault = soapFault11.toFault(); port.faultOperation(fault); }
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; }
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; } }
/** * Send a faulted request. * @param map addressing context initialised with to and message ID. * @param identifier The identifier of the initiator. * @throws com.arjuna.webservices.SoapFault For any errors. * @throws java.io.IOException for any transport errors. */ public void sendFaulted(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint coordinator = getCoordinator(participant); AddressingHelper.installFromFaultTo(map, coordinator, identifier); final TerminationParticipantPortType port = getPort(participant, map, identifier, faultedAction); final NotificationType faulted = new NotificationType(); port.faultedOperation(faulted); }
private TerminationCoordinatorRPCPortType getPort(final W3CEndpointReference endpoint, final MAP map, final String action) { return WSARJTXClient.getTerminationCoordinatorRPCPort(endpoint, action, map); } }
private TerminationCoordinatorPortType getPort(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier, final String action) { // we only need the message id from the addressing properties as the address is already wrapped up // in the ednpoint reference. also the identifier should already be installed in the endpoint // reference as a reference parameter so we don't need that either AddressingHelper.installNoneReplyTo(map); return WSARJTXClient.getTerminationCoordinatorPort(endpoint, action, map); } }
private TerminationParticipantPortType getPort(final MAP map, final InstanceIdentifier identifier, final String action) { // create a port specific to the incoming addressing properties AddressingHelper.installNoneReplyTo(map); return WSARJTXClient.getTerminationParticipantPort(identifier, action, map); } }
/** * Send a fault. * @param map The addressing context. * @param soapFault The SOAP fault. * @param identifier The arjuna instance identifier. * @throws com.arjuna.webservices.SoapFault For any errors. * @throws java.io.IOException for any transport errors. */ public void sendSoapFault(final SoapFault soapFault, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { final TerminationParticipantPortType port = getPort(map, identifier, soapFaultAction); SoapFault11 soapFault11 = (SoapFault11)soapFault; Fault fault = soapFault11.toFault(); port.faultOperation(fault); }
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; }
/** * Send a closed request. * @param map addressing context initialised with to and message ID. * @param identifier The identifier of the initiator. * @throws com.arjuna.webservices.SoapFault For any errors. * @throws java.io.IOException for any transport errors. */ public void sendClosed(final W3CEndpointReference participant, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint coordinator = getCoordinator(participant); AddressingHelper.installFromFaultTo(map, coordinator, identifier); final TerminationParticipantPortType port = getPort(participant, map, identifier, closedAction); final NotificationType closed = new NotificationType(); port.closedOperation(closed); }
private TerminationCoordinatorRPCPortType getPort(final W3CEndpointReference endpoint, final MAP map, final String action) { return WSARJTXClient.getTerminationCoordinatorRPCPort(endpoint, action, map); } }
private TerminationCoordinatorPortType getPort(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier, final String action) { // we only need the message id from the addressing properties as the address is already wrapped up // in the ednpoint reference. also the identifier should already be installed in the endpoint // reference as a reference parameter so we don't need that either AddressingHelper.installNoneReplyTo(map); return WSARJTXClient.getTerminationCoordinatorPort(endpoint, action, map); } }
private TerminationParticipantPortType getPort(final MAP map, final InstanceIdentifier identifier, final String action) { // create a port specific to the incoming addressing properties AddressingHelper.installNoneReplyTo(map); return WSARJTXClient.getTerminationParticipantPort(identifier, action, map); } }
/** * Send a fault. * @param map The addressing context. * @param soapFault The SOAP fault. * @param identifier The arjuna instance identifier. * @throws com.arjuna.webservices.SoapFault For any errors. * @throws java.io.IOException for any transport errors. */ public void sendSoapFault(final SoapFault soapFault, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { final TerminationParticipantPortType port = getPort(map, identifier, soapFaultAction); SoapFault11 soapFault11 = (SoapFault11)soapFault; Fault fault = soapFault11.toFault(); port.faultOperation(fault); }
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; }
/** * Send a cancelled request. * @param map addressing context initialised with to and message ID. * @param identifier The identifier of the initiator. * @throws com.arjuna.webservices.SoapFault For any errors. * @throws java.io.IOException for any transport errors. */ public void sendCancelled(final W3CEndpointReference participant,final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint coordinator = getCoordinator(participant); AddressingHelper.installFromFaultTo(map, coordinator, identifier); final TerminationParticipantPortType port = getPort(participant, map, identifier, cancelledAction); final NotificationType cancelled = new NotificationType(); port.cancelledOperation(cancelled); }