use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class ParticipantPortTypeImpl method completionRollback.
/**
* @param parameters
*/
@WebMethod(operationName = "CompletionRollback", action = "http://fabrikam123.com/CompletionRollback")
@Oneway
@Action(input = "http://fabrikam123.com/CompletionRollback")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public void completionRollback(@WebParam(name = "CompletionRollback", targetNamespace = "http://fabrikam123.com", partName = "parameters") String parameters) {
MessageContext ctx = webServiceCtx.getMessageContext();
MAP inboundMap = AddressingHelper.inboundMap(ctx);
try {
ATParticipantProcessor.getParticipant().completionRollback(parameters, inboundMap);
} catch (SoapFault11 sf) {
sendSoapFault(inboundMap, sf);
return;
}
sendResponse(inboundMap);
}
use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class ParticipantPortTypeImpl method earlyReadonly.
/**
*/
@WebMethod(operationName = "EarlyReadonly", action = "http://fabrikam123.com/EarlyReadonly")
@Oneway
@Action(input = "http://fabrikam123.com/EarlyReadonly")
@RequestWrapper(localName = "EarlyReadonly", targetNamespace = "http://fabrikam123.com", className = "com.jboss.transaction.txinterop.webservices.atinterop.generated.TestMessageType")
public void earlyReadonly() {
MessageContext ctx = webServiceCtx.getMessageContext();
MAP inboundMap = AddressingHelper.inboundMap(ctx);
CoordinationContextType coordinationContext = CoordinationContextManager.getContext(ctx);
try {
ATParticipantProcessor.getParticipant().earlyReadonly(coordinationContext, inboundMap);
} catch (SoapFault11 sf) {
sendSoapFault(inboundMap, sf);
return;
}
sendResponse(inboundMap);
}
use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class ParticipantPortTypeImpl method phase2Rollback.
/**
*/
@WebMethod(operationName = "Phase2Rollback", action = "http://fabrikam123.com/Phase2Rollback")
@Oneway
@Action(input = "http://fabrikam123.com/Phase2Rollback")
@RequestWrapper(localName = "Phase2Rollback", targetNamespace = "http://fabrikam123.com", className = "com.jboss.transaction.txinterop.webservices.atinterop.generated.TestMessageType")
public void phase2Rollback() {
MessageContext ctx = webServiceCtx.getMessageContext();
MAP inboundMap = AddressingHelper.inboundMap(ctx);
CoordinationContextType coordinationContext = CoordinationContextManager.getContext(ctx);
try {
ATParticipantProcessor.getParticipant().phase2Rollback(coordinationContext, inboundMap);
} catch (SoapFault11 sf) {
sendSoapFault(inboundMap, sf);
return;
}
sendResponse(inboundMap);
}
use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class ParticipantPortTypeImpl method preparedAfterTimeout.
/**
*/
@WebMethod(operationName = "PreparedAfterTimeout", action = "http://fabrikam123.com/PreparedAfterTimeout")
@Oneway
@Action(input = "http://fabrikam123.com/PreparedAfterTimeout")
@RequestWrapper(localName = "PreparedAfterTimeout", targetNamespace = "http://fabrikam123.com", className = "com.jboss.transaction.txinterop.webservices.atinterop.generated.TestMessageType")
public void preparedAfterTimeout() {
MessageContext ctx = webServiceCtx.getMessageContext();
MAP inboundMap = AddressingHelper.inboundMap(ctx);
CoordinationContextType coordinationContext = CoordinationContextManager.getContext(ctx);
try {
ATParticipantProcessor.getParticipant().preparedAfterTimeout(coordinationContext, inboundMap);
} catch (SoapFault11 sf) {
sendSoapFault(inboundMap, sf);
return;
}
sendResponse(inboundMap);
}
use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class ParticipantProcessor method completionCommit.
/**
* Execute the CompletionCommit
* @param coordinatorURI The address of the coordinator to employ
* @param map The current addressing context.
* @throws SoapFault11 for errors during processing
*/
public void completionCommit(final String coordinatorURI, final MAP map) throws SoapFault11 {
try {
final CoordinationContextType context = InteropUtil.createCoordinationContext(coordinatorURI);
final CompletionCoordinatorParticipant participant = InteropUtil.registerCompletion(context, context.getIdentifier().getValue());
participant.commit();
} catch (final Throwable th) {
throw new SoapFault11(th);
}
}
Aggregations