Search in sources :

Example 96 with MAP

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

the class SyncParticipantStub method earlyAborted.

/**
 * Send a earlyAborted 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 earlyAborted(final String serviceURI, final CoordinationContextType coordinationContext) throws SoapFault, IOException {
    final String messageId = MessageId.getMessageId();
    final MAP map = AddressingHelper.createRequestContext(serviceURI, messageId);
    SyncParticipantClient.getClient().sendEarlyAborted(coordinationContext, map);
}
Also used : MAP(org.jboss.ws.api.addressing.MAP)

Example 97 with MAP

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

the class SyncParticipantStub method commit.

/**
 * Send a commit 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 commit(final String serviceURI, final CoordinationContextType coordinationContext) throws SoapFault, IOException {
    final String messageId = MessageId.getMessageId();
    final MAP map = AddressingHelper.createRequestContext(serviceURI, messageId);
    SyncParticipantClient.getClient().sendCommit(coordinationContext, map);
}
Also used : MAP(org.jboss.ws.api.addressing.MAP)

Example 98 with MAP

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

the class SyncParticipantStub method volatileAndDurable.

/**
 * Send a volatileAndDurable 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 volatileAndDurable(final String serviceURI, final CoordinationContextType coordinationContext) throws SoapFault, IOException {
    final String messageId = MessageId.getMessageId();
    final MAP map = AddressingHelper.createRequestContext(serviceURI, messageId);
    SyncParticipantClient.getClient().sendVolatileAndDurable(coordinationContext, map);
}
Also used : MAP(org.jboss.ws.api.addressing.MAP)

Example 99 with MAP

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

the class SyncParticipantStub method completionCommit.

/**
 * Send a completion commit request.
 * @param serviceURI The target service URI.
 * @param coordinatorURI The coordinator URI.
 * @throws SoapFault For any errors.
 * @throws IOException for any transport errors.
 */
public void completionCommit(final String serviceURI, final String coordinatorURI) throws SoapFault, IOException {
    final String messageId = MessageId.getMessageId();
    final MAP map = AddressingHelper.createRequestContext(serviceURI, messageId);
    SyncParticipantClient.getClient().sendCompletionCommit(map, coordinatorURI);
}
Also used : MAP(org.jboss.ws.api.addressing.MAP)

Example 100 with MAP

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

the class InitiatorPortTypeImpl method soapFault.

@WebMethod(operationName = "SoapFault", action = "http://fabrikam123.com/SoapFault")
@Oneway
@Action(input = "http://fabrikam123.com/SoapFault")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public void soapFault(@WebParam(name = "Fault", targetNamespace = "http://schemas.xmlsoap.org/soap/envelope/", partName = "parameters") Fault fault) {
    MessageContext ctx = webServiceCtx.getMessageContext();
    MAP inboundMap = AddressingHelper.inboundMap(ctx);
    SoapFault11 soapFaultInternal = SoapFault11.fromFault(fault);
    ATInitiatorProcessor.getInitiator().handleSoapFault(soapFaultInternal, inboundMap);
}
Also used : SoapFault11(com.arjuna.webservices11.SoapFault11) 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) SOAPBinding(javax.jws.soap.SOAPBinding)

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