Search in sources :

Example 16 with RequestWrapper

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

the class ParticipantPortTypeImpl method messageLossAndRecovery.

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

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

the class ParticipantPortTypeImpl method compensationFail.

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

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

the class ParticipantPortTypeImpl method fail.

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

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

the class ParticipantPortTypeImpl method mixedOutcome.

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

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

the class InitiatorPortTypeImpl method response.

/**
 */
@WebMethod(operationName = "Response", action = "http://fabrikam123.com/wsba/Response")
@Oneway
@Action(input = "http://fabrikam123.com/wsba/Response")
@RequestWrapper(localName = "Response", targetNamespace = "http://fabrikam123.com/wsba", className = "com.jboss.transaction.txinterop.webservices.bainterop.generated.TestMessageType")
public void response() {
    MessageContext ctx = webServiceCtx.getMessageContext();
    MAP inboundMap = AddressingHelper.inboundMap(ctx);
    BAInitiatorProcessor.getInitiator().handleResponse(inboundMap);
}
Also used : MessageContext(javax.xml.ws.handler.MessageContext) MAP(org.jboss.ws.api.addressing.MAP) WebMethod(javax.jws.WebMethod) Action(javax.xml.ws.Action) Oneway(javax.jws.Oneway) 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