Search in sources :

Example 31 with RequestWrapper

use of javax.xml.ws.RequestWrapper in project narayana by jbosstm.

the class ParticipantPortTypeImpl method participantCompleteClose.

/**
 */
@WebMethod(operationName = "ParticipantCompleteClose", action = "http://fabrikam123.com/wsba/ParticipantCompleteClose")
@Oneway
@Action(input = "http://fabrikam123.com/wsba/ParticipantCompleteClose")
@RequestWrapper(localName = "ParticipantCompleteClose", targetNamespace = "http://fabrikam123.com/wsba", className = "com.jboss.transaction.txinterop.webservices.bainterop.generated.TestMessageType")
public void participantCompleteClose() {
    MessageContext ctx = webServiceCtx.getMessageContext();
    MAP inboundMap = AddressingHelper.inboundMap(ctx);
    CoordinationContextType coordinationContext = CoordinationContextManager.getContext(ctx);
    try {
        BAParticipantProcessor.getParticipant().participantCompleteClose(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)

Example 32 with RequestWrapper

use of javax.xml.ws.RequestWrapper in project narayana by jbosstm.

the class ParticipantPortTypeImpl method unsolicitedComplete.

/**
 */
@WebMethod(operationName = "UnsolicitedComplete", action = "http://fabrikam123.com/wsba/UnsolicitedComplete")
@Oneway
@Action(input = "http://fabrikam123.com/wsba/UnsolicitedComplete")
@RequestWrapper(localName = "UnsolicitedComplete", targetNamespace = "http://fabrikam123.com/wsba", className = "com.jboss.transaction.txinterop.webservices.bainterop.generated.TestMessageType")
public void unsolicitedComplete() {
    MessageContext ctx = webServiceCtx.getMessageContext();
    MAP inboundMap = AddressingHelper.inboundMap(ctx);
    CoordinationContextType coordinationContext = CoordinationContextManager.getContext(ctx);
    try {
        BAParticipantProcessor.getParticipant().unsolicitedComplete(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)

Example 33 with RequestWrapper

use of javax.xml.ws.RequestWrapper in project narayana by jbosstm.

the class ParticipantPortTypeImpl method coordinatorCompleteClose.

/**
 */
@WebMethod(operationName = "CoordinatorCompleteClose", action = "http://fabrikam123.com/wsba/CoordinatorCompleteClose")
@Oneway
@Action(input = "http://fabrikam123.com/wsba/CoordinatorCompleteClose")
@RequestWrapper(localName = "CoordinatorCompleteClose", targetNamespace = "http://fabrikam123.com/wsba", className = "com.jboss.transaction.txinterop.webservices.bainterop.generated.TestMessageType")
public void coordinatorCompleteClose() {
    MessageContext ctx = webServiceCtx.getMessageContext();
    MAP inboundMap = AddressingHelper.inboundMap(ctx);
    CoordinationContextType coordinationContext = CoordinationContextManager.getContext(ctx);
    try {
        BAParticipantProcessor.getParticipant().coordinatorCompleteClose(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)

Example 34 with RequestWrapper

use of javax.xml.ws.RequestWrapper in project narayana by jbosstm.

the class ParticipantPortTypeImpl method exit.

/**
 */
@WebMethod(operationName = "Exit", action = "http://fabrikam123.com/wsba/Exit")
@Oneway
@Action(input = "http://fabrikam123.com/wsba/Exit")
@RequestWrapper(localName = "Exit", targetNamespace = "http://fabrikam123.com/wsba", className = "com.jboss.transaction.txinterop.webservices.bainterop.generated.TestMessageType")
public void exit() {
    MessageContext ctx = webServiceCtx.getMessageContext();
    MAP inboundMap = AddressingHelper.inboundMap(ctx);
    CoordinationContextType coordinationContext = CoordinationContextManager.getContext(ctx);
    try {
        BAParticipantProcessor.getParticipant().exit(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)

Example 35 with RequestWrapper

use of javax.xml.ws.RequestWrapper in project narayana by jbosstm.

the class ParticipantPortTypeImpl method cannotComplete.

/**
 */
@WebMethod(operationName = "CannotComplete", action = "http://fabrikam123.com/wsba/CannotComplete")
@Oneway
@Action(input = "http://fabrikam123.com/wsba/CannotComplete")
@RequestWrapper(localName = "CannotComplete", targetNamespace = "http://fabrikam123.com/wsba", className = "com.jboss.transaction.txinterop.webservices.bainterop.generated.TestMessageType")
public void cannotComplete() {
    MessageContext ctx = webServiceCtx.getMessageContext();
    MAP inboundMap = AddressingHelper.inboundMap(ctx);
    CoordinationContextType coordinationContext = CoordinationContextManager.getContext(ctx);
    try {
        BAParticipantProcessor.getParticipant().cannotComplete(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

RequestWrapper (javax.xml.ws.RequestWrapper)50 Action (javax.xml.ws.Action)41 MessageContext (javax.xml.ws.handler.MessageContext)41 MAP (org.jboss.ws.api.addressing.MAP)41 SoapFault11 (com.arjuna.webservices11.SoapFault11)38 CoordinationContextType (org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType)38 WebMethod (javax.jws.WebMethod)10 Method (java.lang.reflect.Method)7 File (java.io.File)4 Oneway (javax.jws.Oneway)4 AbstractCodeGenTest (org.apache.cxf.tools.wsdlto.AbstractCodeGenTest)4 Test (org.junit.Test)4 ObjectStreamClass (java.io.ObjectStreamClass)2 WebParam (javax.jws.WebParam)2 WebResult (javax.jws.WebResult)2 WebService (javax.jws.WebService)2 QName (javax.xml.namespace.QName)2 ResponseWrapper (javax.xml.ws.ResponseWrapper)2 Annotation (java.lang.annotation.Annotation)1 ArrayList (java.util.ArrayList)1