private static void throwException(QName subcode, String detail, SOAPFaultException sfe, Fault fault) throws CannotRegisterException, InvalidProtocolException, InvalidStateException, SoapFault { if (CoordinationConstants.WSCOOR_ERROR_CODE_CANNOT_REGISTER_QNAME.equals(subcode)) { throw new CannotRegisterException(detail); } else if (CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PROTOCOL_QNAME.equals(subcode)) { throw new InvalidProtocolException(detail); } else if (CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_STATE_QNAME.equals(subcode)) { throw new InvalidStateException(detail); } if (sfe != null) { throw SoapFault11.create(sfe); } else { throw SoapFault11.fromFault(fault); } }
/** * Send a rollback 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 boolean sendRollback(final W3CEndpointReference endpoint, final MAP map) throws SoapFault, IOException { CompletionCoordinatorRPCPortType port = getPort(endpoint, map, rollbackAction); Notification rollback = new Notification(); try { return port.rollbackOperation(rollback); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a commit 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 boolean sendCommit(final W3CEndpointReference endpoint, final MAP map) throws SoapFault, IOException { CompletionCoordinatorRPCPortType port = getPort(endpoint, map, commitAction); Notification commit = new Notification(); try { return port.commitOperation(commit); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a cancel 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 sendCancel(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, cancelAction); final NotificationType cancel = new NotificationType(); try { port.cancelOperation(cancel); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a cancel 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 sendCancel(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, cancelAction); final NotificationType cancel = new NotificationType(); try { port.cancelOperation(cancel); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a rollback 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 boolean sendRollback(final W3CEndpointReference endpoint, final MAP map) throws SoapFault, IOException { CompletionCoordinatorRPCPortType port = getPort(endpoint, map, rollbackAction); Notification rollback = new Notification(); try { return port.rollbackOperation(rollback); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a complete 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 sendComplete(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, completeAction); final NotificationType complete = new NotificationType(); try { port.completeOperation(complete); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a close 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 sendClose(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, closeAction); final NotificationType close = new NotificationType(); try { port.closeOperation(close); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a close 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 sendClose(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, closeAction); final NotificationType close = new NotificationType(); try { port.closeOperation(close); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a complete 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 sendComplete(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, completeAction); final NotificationType complete = new NotificationType(); try { port.completeOperation(complete); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a commit 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 boolean sendCommit(final W3CEndpointReference endpoint, final MAP map) throws SoapFault, IOException { CompletionCoordinatorRPCPortType port = getPort(endpoint, map, commitAction); Notification commit = new Notification(); try { return port.commitOperation(commit); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a close 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 sendClose(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, closeAction); final NotificationType close = new NotificationType(); try { port.closeOperation(close); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a commit 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 boolean sendCommit(final W3CEndpointReference endpoint, final MAP map) throws SoapFault, IOException { CompletionCoordinatorRPCPortType port = getPort(endpoint, map, commitAction); Notification commit = new Notification(); try { return port.commitOperation(commit); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a rollback 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 boolean sendRollback(final W3CEndpointReference endpoint, final MAP map) throws SoapFault, IOException { CompletionCoordinatorRPCPortType port = getPort(endpoint, map, rollbackAction); Notification rollback = new Notification(); try { return port.rollbackOperation(rollback); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a cancel 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 sendCancel(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, cancelAction); final NotificationType cancel = new NotificationType(); try { port.cancelOperation(cancel); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
/** * Send a complete 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 sendComplete(final W3CEndpointReference coordinator, final MAP map, final InstanceIdentifier identifier) throws SoapFault11, IOException { final TerminationCoordinatorRPCPortType port = getPort(coordinator, map, completeAction); final NotificationType complete = new NotificationType(); try { port.completeOperation(complete); } catch (SOAPFaultException sfe) { throw SoapFault11.create(sfe); } }
throw new InvalidCreateParametersException(message); throw SoapFault11.create(sfe);
throw new InvalidCreateParametersException(message); throw SoapFault11.create(sfe);
throw new InvalidCreateParametersException(message); throw SoapFault11.create(sfe);
throw new InvalidStateException(message) ; throw SoapFault11.create(sfe);