/** * 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendSoapFault(final W3CEndpointReference endpoint, final MAP map, final SoapFault soapFault, final InstanceIdentifier identifier) throws SoapFault, IOException { CoordinatorPortType port = getPort(endpoint, map, faultAction); // convert fault to the wire format and dispatch it to the initiator soapFault.setAction(faultAction) ; Fault fault = ((SoapFault11)soapFault).toFault(); port.soapFault(fault); }
/** * 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendSoapFault(final W3CEndpointReference endpoint, final MAP map, final SoapFault soapFault, final InstanceIdentifier identifier) throws SoapFault, IOException { CoordinatorPortType port = getPort(endpoint, map, faultAction); // convert fault to the wire format and dispatch it to the initiator soapFault.setAction(faultAction) ; Fault fault = ((SoapFault11)soapFault).toFault(); port.soapFault(fault); }
/** * 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendSoapFault(final W3CEndpointReference endpoint, final MAP map, final SoapFault soapFault, final InstanceIdentifier identifier) throws SoapFault, IOException { CoordinatorPortType port = getPort(endpoint, map, faultAction); // convert fault to the wire format and dispatch it to the initiator soapFault.setAction(faultAction) ; Fault fault = ((SoapFault11)soapFault).toFault(); port.soapFault(fault); }
/** * Send a prepared 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendPrepared(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFromFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, preparedAction); Notification prepared = new Notification(); port.preparedOperation(prepared); }
/** * Send a prepared 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendPrepared(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFromFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, preparedAction); Notification prepared = new Notification(); port.preparedOperation(prepared); }
/** * Send a read only 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendReadOnly(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, readOnlyAction); Notification readOnly = new Notification(); port.readOnlyOperation(readOnly); }
/** * Send a prepared 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendPrepared(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFromFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, preparedAction); Notification prepared = new Notification(); port.preparedOperation(prepared); }
/** * Send a read only 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendReadOnly(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, readOnlyAction); Notification readOnly = new Notification(); port.readOnlyOperation(readOnly); }
/** * Send a committed 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendCommitted(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, committedAction); Notification committed = new Notification(); port.committedOperation(committed); }
/** * Send an aborted 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendAborted(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, abortedAction); Notification aborted = new Notification(); port.abortedOperation(aborted); }
/** * Send a read only 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendReadOnly(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, readOnlyAction); Notification readOnly = new Notification(); port.readOnlyOperation(readOnly); }
/** * Send a committed 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendCommitted(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, committedAction); Notification committed = new Notification(); port.committedOperation(committed); }
/** * Send an aborted 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendAborted(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, abortedAction); Notification aborted = new Notification(); port.abortedOperation(aborted); }
/** * Send a committed 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendCommitted(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, committedAction); Notification committed = new Notification(); port.committedOperation(committed); }
/** * Send an aborted 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 SOAP errors. * @throws java.io.IOException for any transport errors. */ public void sendAborted(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException { MAPEndpoint participant = getParticipant(endpoint, map); AddressingHelper.installFaultTo(map, participant, identifier); CoordinatorPortType port = getPort(endpoint, map, abortedAction); Notification aborted = new Notification(); port.abortedOperation(aborted); }