use of org.jboss.ws.api.addressing.MAP 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 org.jboss.ws.api.addressing.MAP 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 org.jboss.ws.api.addressing.MAP 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 org.jboss.ws.api.addressing.MAP 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 org.jboss.ws.api.addressing.MAP in project narayana by jbosstm.
the class AsyncParticipantStub method preparedAfterTimeout.
/**
* Send a preparedAfterTimeout request.
* @param serviceURI The target service URI.
* @param coordinationContext The coordination context.
* @throws SoapFault For any errors.
* @throws IOException for any transport errors.
*/
public void preparedAfterTimeout(final String serviceURI, final CoordinationContextType coordinationContext) throws SoapFault, IOException {
final String messageId = MessageId.getMessageId();
final MAP map = AddressingHelper.createRequestContext(serviceURI, messageId);
final RequestCallback callback = new RequestCallback();
final ATInitiatorProcessor initiator = ATInitiatorProcessor.getInitiator();
initiator.registerCallback(messageId, callback);
try {
AsyncParticipantClient.getClient().sendPreparedAfterTimeout(coordinationContext, map);
callback.waitUntilTriggered(15000);
} finally {
initiator.removeCallback(messageId);
}
handleCallback(callback);
}
Aggregations