use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class ParticipantPortTypeImpl method soapFault.
@WebMethod(operationName = "SoapFault", action = "http://docs.oasis-open.org/ws-tx/wsat/2006/06/fault")
@Oneway
@Action(input = "http://docs.oasis-open.org/ws-tx/wsat/2006/06/fault")
public void soapFault(@WebParam(name = "Fault", targetNamespace = "http://schemas.xmlsoap.org/soap/envelope/", partName = "parameters") Fault fault) {
MessageContext ctx = webServiceCtx.getMessageContext();
final MAP inboundMap = AddressingHelper.inboundMap(ctx);
final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
final SoapFault soapFault = SoapFault11.fromFault(fault);
TaskManager.getManager().queueTask(new Task() {
public void executeTask() {
ParticipantProcessor.getProcessor().soapFault(soapFault, inboundMap, arjunaContext);
;
}
});
}
use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class CoordinatorCompletionCoordinatorClient method sendSoapFault.
/**
* send a soap fault
* @param soapFault the fault to be sent
* @param endpoint the endpoint to send the fault to
* @param map addressing context to be used to send the fault
* @param faultAction the action to associate with the message
*/
public void sendSoapFault(SoapFault11 soapFault, W3CEndpointReference endpoint, MAP map, String faultAction) throws SoapFault, IOException {
AddressingHelper.installNoneReplyTo(map);
map.setAction(faultAction);
BusinessAgreementWithCoordinatorCompletionCoordinatorPortType port;
port = getPort(endpoint, map, faultAction);
Fault fault = ((SoapFault11) soapFault).toFault();
port.soapFault(fault);
}
use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class CoordinatorEngine method sendUnknownTransaction.
/**
* Send the UnknownTransaction message.
*/
private void sendUnknownTransaction(final MAP map, final ArjunaContext arjunaContext) {
try {
final MAP faultMAP = AddressingHelper.createFaultContext(map, MessageId.getMessageId());
final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier();
final String message = WSTLogger.i18NLogger.get_wst11_messaging_engines_CoordinatorEngine_sendUnknownTransaction_1();
final SoapFault soapFault = new SoapFault11(SoapFaultType.FAULT_SENDER, AtomicTransactionConstants.WSAT_ERROR_CODE_UNKNOWN_TRANSACTION_QNAME, message);
ParticipantClient.getClient().sendSoapFault(faultMAP, soapFault, instanceIdentifier);
} catch (final Throwable th) {
WSTLogger.i18NLogger.warn_wst11_messaging_engines_CoordinatorEngine_sendUnknownTransaction_2(id, th);
}
}
use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class BAParticipantProcessor method cannotComplete.
/**
* Execute the CannotComplete
* @param map The current addressing context.
*
* @throws SoapFault11 for errors during processing
*/
public void cannotComplete(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
try {
final CannotCompleteParticipant participant = new CannotCompleteParticipant();
final CoordinatorCompletionParticipantEngine engine = BAInteropUtil.registerCoordinatorCompletion(coordinationContext, participant, new Uid().toString());
participant.setEngine(engine);
participant.initialiseTimeout();
} catch (final Throwable th) {
throw new SoapFault11(th);
}
}
use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class BAParticipantProcessor method participantCancelCompletedRace.
/**
* Execute the ParticipantCancelCompletedRace
* @param map The current addressing context.
*
* @throws SoapFault11 for errors during processing
*/
public void participantCancelCompletedRace(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
try {
final CompletedParticipant participant = new CompletedParticipant();
final ParticipantCompletionParticipantEngine engine = BAInteropUtil.registerParticipantCompletion(coordinationContext, participant, new Uid().toString());
participant.setEngine(engine);
participant.initialiseTimeout();
} catch (final Throwable th) {
throw new SoapFault11(th);
}
}
Aggregations