Search in sources :

Example 51 with MAP

use of org.jboss.ws.api.addressing.MAP in project narayana by jbosstm.

the class TerminationCoordinatorRPCPortTypeImpl method completeOperation.

@WebResult(name = "Completed", targetNamespace = "http://schemas.arjuna.com/ws/2005/10/wsarjtx", partName = "parameters")
@WebMethod(operationName = "CompleteOperation", action = "http://schemas.arjuna.com/ws/2005/10/wsarjtx/Complete")
public NotificationType completeOperation(@WebParam(partName = "parameters", name = "Complete", targetNamespace = "http://schemas.arjuna.com/ws/2005/10/wsarjtx") NotificationType parameters) {
    MessageContext ctx = webServiceCtx.getMessageContext();
    final NotificationType complete = parameters;
    final MAP inboundMap = AddressingHelper.inboundMap(ctx);
    final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
    TerminationCoordinatorRPCProcessor.getProcessor().complete(complete, inboundMap, arjunaContext);
    ;
    return new NotificationType();
}
Also used : NotificationType(com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType) MessageContext(javax.xml.ws.handler.MessageContext) ArjunaContext(com.arjuna.webservices11.wsarj.ArjunaContext) MAP(org.jboss.ws.api.addressing.MAP)

Example 52 with MAP

use of org.jboss.ws.api.addressing.MAP in project narayana by jbosstm.

the class TerminationCoordinatorRPCPortTypeImpl method cancelOperation.

@WebResult(name = "Cancelled", targetNamespace = "http://schemas.arjuna.com/ws/2005/10/wsarjtx", partName = "parameters")
@WebMethod(operationName = "CancelOperation", action = "http://schemas.arjuna.com/ws/2005/10/wsarjtx/Cancel")
public NotificationType cancelOperation(@WebParam(partName = "parameters", name = "Cancel", targetNamespace = "http://schemas.arjuna.com/ws/2005/10/wsarjtx") NotificationType parameters) {
    MessageContext ctx = webServiceCtx.getMessageContext();
    final NotificationType cancel = parameters;
    final MAP inboundMap = AddressingHelper.inboundMap(ctx);
    final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
    TerminationCoordinatorRPCProcessor.getProcessor().cancel(cancel, inboundMap, arjunaContext);
    return new NotificationType();
}
Also used : NotificationType(com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType) MessageContext(javax.xml.ws.handler.MessageContext) ArjunaContext(com.arjuna.webservices11.wsarj.ArjunaContext) MAP(org.jboss.ws.api.addressing.MAP)

Example 53 with MAP

use of org.jboss.ws.api.addressing.MAP in project narayana by jbosstm.

the class ActivationPortTypeImpl method createCoordinationContextOperation.

@WebMethod(operationName = "CreateCoordinationContextOperation", action = "http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContext")
@WebResult(name = "CreateCoordinationContextResponse", targetNamespace = "http://docs.oasis-open.org/ws-tx/wscoor/2006/06", partName = "parameters")
@Action(input = "http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContext", output = "http://docs.oasis-open.org/ws-tx/wscoor/2006/06/CreateCoordinationContextResponse")
public CreateCoordinationContextResponseType createCoordinationContextOperation(@WebParam(name = "CreateCoordinationContext", targetNamespace = "http://docs.oasis-open.org/ws-tx/wscoor/2006/06", partName = "parameters") CreateCoordinationContextType parameters) {
    MessageContext ctx = webServiceCtx.getMessageContext();
    HttpServletRequest request = (HttpServletRequest) ctx.get(MessageContext.SERVLET_REQUEST);
    boolean isSecure = "https".equals(request.getScheme());
    MAP inboundMAP = AddressingHelper.inboundMap(ctx);
    return ActivationCoordinatorProcessor.getCoordinator().createCoordinationContext(parameters, inboundMAP, isSecure);
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) MessageContext(javax.xml.ws.handler.MessageContext) MAP(org.jboss.ws.api.addressing.MAP) Action(javax.xml.ws.Action)

Example 54 with MAP

use of org.jboss.ws.api.addressing.MAP in project narayana by jbosstm.

the class RegistrationPortTypeImpl method registerOperation.

@WebResult(targetNamespace = "http://docs.oasis-open.org/ws-tx/wscoor/2006/06", partName = "parameters", name = "RegisterResponse")
@WebMethod(operationName = "RegisterOperation", action = "http://docs.oasis-open.org/ws-tx/wscoor/2006/06/Register")
@Action(input = "http://docs.oasis-open.org/ws-tx/wscoor/2006/06/Register", output = "http://docs.oasis-open.org/ws-tx/wscoor/2006/06/RegisterResponse")
public org.oasis_open.docs.ws_tx.wscoor._2006._06.RegisterResponseType registerOperation(@WebParam(targetNamespace = "http://docs.oasis-open.org/ws-tx/wscoor/2006/06", partName = "parameters", name = "Register") org.oasis_open.docs.ws_tx.wscoor._2006._06.RegisterType parameters) {
    MessageContext ctx = webServiceCtx.getMessageContext();
    HttpServletRequest request = (HttpServletRequest) ctx.get(MessageContext.SERVLET_REQUEST);
    boolean isSecure = "https".equals(request.getScheme());
    MAP inboundMap = AddressingHelper.inboundMap(ctx);
    final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
    return RegistrationCoordinatorProcessor.getCoordinator().register(parameters, inboundMap, arjunaContext, isSecure);
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) MessageContext(javax.xml.ws.handler.MessageContext) ArjunaContext(com.arjuna.webservices11.wsarj.ArjunaContext) MAP(org.jboss.ws.api.addressing.MAP) Action(javax.xml.ws.Action)

Example 55 with MAP

use of org.jboss.ws.api.addressing.MAP in project narayana by jbosstm.

the class ParticipantPortTypeImpl method commit.

/**
 */
@WebMethod(operationName = "Commit", action = "http://fabrikam123.com/Commit")
@Oneway
@Action(input = "http://fabrikam123.com/Commit")
@RequestWrapper(localName = "Commit", targetNamespace = "http://fabrikam123.com", className = "com.jboss.transaction.txinterop.webservices.atinterop.generated.TestMessageType")
public void commit() {
    MessageContext ctx = webServiceCtx.getMessageContext();
    MAP inboundMap = AddressingHelper.inboundMap(ctx);
    CoordinationContextType coordinationContext = CoordinationContextManager.getContext(ctx);
    try {
        ATParticipantProcessor.getParticipant().commit(coordinationContext, inboundMap);
    } catch (SoapFault11 sf) {
        sendSoapFault(inboundMap, sf);
        return;
    }
    sendResponse(inboundMap);
}
Also used : SoapFault11(com.arjuna.webservices11.SoapFault11) MessageContext(javax.xml.ws.handler.MessageContext) CoordinationContextType(org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType) MAP(org.jboss.ws.api.addressing.MAP) Action(javax.xml.ws.Action) RequestWrapper(javax.xml.ws.RequestWrapper)

Aggregations

MAP (org.jboss.ws.api.addressing.MAP)322 MessageContext (javax.xml.ws.handler.MessageContext)119 Action (javax.xml.ws.Action)104 ArjunaContext (com.arjuna.webservices11.wsarj.ArjunaContext)81 InstanceIdentifier (com.arjuna.webservices11.wsarj.InstanceIdentifier)75 SoapFault11 (com.arjuna.webservices11.SoapFault11)65 Task (com.arjuna.services.framework.task.Task)62 W3CEndpointReference (javax.xml.ws.wsaddressing.W3CEndpointReference)53 Test (org.junit.Test)51 RequestWrapper (javax.xml.ws.RequestWrapper)41 CoordinationContextType (org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType)40 NotificationType (org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType)29 SoapFault (com.arjuna.webservices.SoapFault)24 ATInitiatorProcessor (com.jboss.transaction.txinterop.webservices.atinterop.processors.ATInitiatorProcessor)15 InitiatorProcessor (com.jboss.transaction.wstf.webservices.sc007.processors.InitiatorProcessor)15 Notification (org.oasis_open.docs.ws_tx.wsat._2006._06.Notification)15 QName (javax.xml.namespace.QName)13 BAInitiatorProcessor (com.jboss.transaction.txinterop.webservices.bainterop.processors.BAInitiatorProcessor)12 SystemException (com.arjuna.wst.SystemException)11 UnknownTransactionException (com.arjuna.wst.UnknownTransactionException)11