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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations