use of org.apache.cxf.service.model.OperationInfo in project cxf by apache.
the class Proxy method terminate.
void terminate(DestinationSequence ds) throws RMException {
ProtocolVariation protocol = ds.getProtocol();
RMConstants constants = protocol.getConstants();
OperationInfo oi = reliableEndpoint.getEndpoint(protocol).getEndpointInfo().getService().getInterface().getOperation(constants.getTerminateSequenceOperationName());
TerminateSequenceType ts = new TerminateSequenceType();
ts.setIdentifier(ds.getIdentifier());
ts.setLastMsgNumber(ds.getLastMessageNumber());
EncoderDecoder codec = protocol.getCodec();
invoke(oi, protocol, new Object[] { codec.convertToSend(ts) }, this.sequenceContext);
}
use of org.apache.cxf.service.model.OperationInfo in project cxf by apache.
the class Proxy method acknowledge.
void acknowledge(DestinationSequence ds) throws RMException {
final ProtocolVariation protocol = ds.getProtocol();
String address = ds.getAcksTo().getAddress().getValue();
if (RMUtils.getAddressingConstants().getAnonymousURI().equals(address)) {
LOG.log(Level.WARNING, "STANDALONE_ANON_ACKS_NOT_SUPPORTED");
return;
}
RMConstants constants = protocol.getConstants();
OperationInfo oi = reliableEndpoint.getEndpoint(protocol).getEndpointInfo().getService().getInterface().getOperation(constants.getSequenceAckOperationName());
invoke(oi, protocol, new Object[] { ds }, this.sequenceContext);
}
use of org.apache.cxf.service.model.OperationInfo in project cxf by apache.
the class Proxy method terminate.
void terminate(SourceSequence ss) throws RMException {
ProtocolVariation protocol = ss.getProtocol();
RMConstants constants = protocol.getConstants();
OperationInfo oi = reliableEndpoint.getEndpoint(protocol).getEndpointInfo().getService().getInterface().getOperation(constants.getTerminateSequenceOperationName());
TerminateSequenceType ts = new TerminateSequenceType();
ts.setIdentifier(ss.getIdentifier());
ts.setLastMsgNumber(ss.getCurrentMessageNr());
EncoderDecoder codec = protocol.getCodec();
invoke(oi, protocol, new Object[] { codec.convertToSend(ts) }, this.sequenceContext);
}
use of org.apache.cxf.service.model.OperationInfo in project cxf by apache.
the class FormattedServiceListWriter method writerSoapEndpoint.
private void writerSoapEndpoint(PrintWriter writer, String basePath, AbstractDestination sd) {
String absoluteURL = getAbsoluteAddress(basePath, sd);
if (absoluteURL == null) {
return;
}
writer.write("<tr><td>");
writer.write("<span class=\"porttypename\">" + sd.getEndpointInfo().getInterface().getName().getLocalPart() + "</span>");
writer.write("<ul>");
for (OperationInfo oi : sd.getEndpointInfo().getInterface().getOperations()) {
if (!Boolean.TRUE.equals(oi.getProperty("operation.is.synthetic"))) {
writer.write("<li>" + oi.getName().getLocalPart() + "</li>");
}
}
writer.write("</ul>");
writer.write("</td><td>");
writer.write("<span class=\"field\">Endpoint address:</span> " + "<span class=\"value\">" + absoluteURL + "</span>");
writer.write("<br/><span class=\"field\">WSDL :</span> " + "<a href=\"" + absoluteURL + "?wsdl\">" + sd.getEndpointInfo().getService().getName() + "</a>");
writer.write("<br/><span class=\"field\">Target namespace:</span> " + "<span class=\"value\">" + sd.getEndpointInfo().getService().getTargetNamespace() + "</span>");
addAtomLinkIfNeeded(absoluteURL, atomMap, writer);
writer.write("</td></tr>");
}
use of org.apache.cxf.service.model.OperationInfo in project cxf by apache.
the class CorbaStreamInInterceptor method prepareArguments.
protected NVList prepareArguments(CorbaMessage corbaMsg, InterfaceInfo info, OperationType opType, QName opQName, CorbaTypeMap typeMap, CorbaDestination destination, ServiceInfo service) {
BindingInfo bInfo = destination.getBindingInfo();
EndpointInfo eptInfo = destination.getEndPointInfo();
BindingOperationInfo bOpInfo = bInfo.getOperation(opQName);
OperationInfo opInfo = bOpInfo.getOperationInfo();
Exchange exg = corbaMsg.getExchange();
exg.put(BindingInfo.class, bInfo);
exg.put(InterfaceInfo.class, info);
exg.put(EndpointInfo.class, eptInfo);
exg.put(EndpointReferenceType.class, destination.getAddress());
exg.put(ServiceInfo.class, service);
exg.put(BindingOperationInfo.class, bOpInfo);
exg.put(OperationInfo.class, opInfo);
exg.put(MessageInfo.class, opInfo.getInput());
exg.put(String.class, opQName.getLocalPart());
exg.setInMessage(corbaMsg);
corbaMsg.put(MessageInfo.class, opInfo.getInput());
List<ParamType> paramTypes = opType.getParam();
CorbaStreamable[] arguments = new CorbaStreamable[paramTypes.size()];
return prepareDIIArgsList(corbaMsg, bOpInfo, arguments, paramTypes, typeMap, exg.get(ORB.class), service);
}
Aggregations