use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class ParticipantPortTypeImpl method completionRollback.
/**
* @param parameters
*/
@WebMethod(operationName = "CompletionRollback", action = "http://www.wstf.org/docs/scenarios/sc007/CompletionRollback")
@Oneway
@Action(input = "http://www.wstf.org/docs/scenarios/sc007/CompletionRollback")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public void completionRollback(@WebParam(name = "CompletionRollback", targetNamespace = "http://www.wstf.org/sc007", partName = "parameters") String parameters) {
MessageContext ctx = webServiceCtx.getMessageContext();
MAP inboundMap = AddressingHelper.inboundMap(ctx);
try {
ParticipantProcessor.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 readonly.
/**
*/
@WebMethod(operationName = "Readonly", action = "http://www.wstf.org/docs/scenarios/sc007/Readonly")
@Oneway
@Action(input = "http://www.wstf.org/docs/scenarios/sc007/Readonly")
@RequestWrapper(localName = "Readonly", targetNamespace = "http://www.wstf.org/sc007", className = "com.jboss.transaction.wstf.webservices.sc007.generated.TestMessageType")
public void readonly() {
MessageContext ctx = webServiceCtx.getMessageContext();
MAP inboundMap = AddressingHelper.inboundMap(ctx);
CoordinationContextType coordinationContext = CoordinationContextManager.getContext(ctx);
try {
ParticipantProcessor.getParticipant().readonly(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 retryCommit.
/**
*/
@WebMethod(operationName = "RetryCommit", action = "http://www.wstf.org/docs/scenarios/sc007/RetryCommit")
@Oneway
@Action(input = "http://www.wstf.org/docs/scenarios/sc007/RetryCommit")
@RequestWrapper(localName = "RetryCommit", targetNamespace = "http://www.wstf.org/sc007", className = "com.jboss.transaction.wstf.webservices.sc007.generated.TestMessageType")
public void retryCommit() {
MessageContext ctx = webServiceCtx.getMessageContext();
MAP inboundMap = AddressingHelper.inboundMap(ctx);
CoordinationContextType coordinationContext = CoordinationContextManager.getContext(ctx);
try {
ParticipantProcessor.getParticipant().retryCommit(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 earlyAborted.
/**
*/
@WebMethod(operationName = "EarlyAborted", action = "http://www.wstf.org/docs/scenarios/sc007/EarlyAborted")
@Oneway
@Action(input = "http://www.wstf.org/docs/scenarios/sc007/EarlyAborted")
@RequestWrapper(localName = "EarlyAborted", targetNamespace = "http://www.wstf.org/sc007", className = "com.jboss.transaction.wstf.webservices.sc007.generated.TestMessageType")
public void earlyAborted() {
MessageContext ctx = webServiceCtx.getMessageContext();
MAP inboundMap = AddressingHelper.inboundMap(ctx);
CoordinationContextType coordinationContext = CoordinationContextManager.getContext(ctx);
try {
ParticipantProcessor.getParticipant().earlyAborted(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 soapFault.
public void soapFault(@WebParam(name = "Fault", targetNamespace = "http://schemas.xmlsoap.org/soap/envelope/", partName = "fault") Fault fault) {
// hmm, probably ought not to happen -- just log this as an error
SoapFault11 soapFaultInternal = SoapFault11.fromFault(fault);
System.out.println("com.jboss.transaction.wstf.webservices.sc007.sei.ParticipantPortTypeImpl_3: unexpected soap fault " + soapFaultInternal);
}
Aggregations