Search in sources :

Example 36 with OperationInfo

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);
}
Also used : BindingOperationInfo(org.apache.cxf.service.model.BindingOperationInfo) OperationInfo(org.apache.cxf.service.model.OperationInfo) TerminateSequenceType(org.apache.cxf.ws.rm.v200702.TerminateSequenceType)

Example 37 with OperationInfo

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);
}
Also used : BindingOperationInfo(org.apache.cxf.service.model.BindingOperationInfo) OperationInfo(org.apache.cxf.service.model.OperationInfo)

Example 38 with OperationInfo

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);
}
Also used : BindingOperationInfo(org.apache.cxf.service.model.BindingOperationInfo) OperationInfo(org.apache.cxf.service.model.OperationInfo) TerminateSequenceType(org.apache.cxf.ws.rm.v200702.TerminateSequenceType)

Example 39 with OperationInfo

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>");
}
Also used : OperationInfo(org.apache.cxf.service.model.OperationInfo)

Example 40 with OperationInfo

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);
}
Also used : BindingOperationInfo(org.apache.cxf.service.model.BindingOperationInfo) OperationInfo(org.apache.cxf.service.model.OperationInfo) Exchange(org.apache.cxf.message.Exchange) EndpointInfo(org.apache.cxf.service.model.EndpointInfo) BindingOperationInfo(org.apache.cxf.service.model.BindingOperationInfo) CorbaStreamable(org.apache.cxf.binding.corba.CorbaStreamable) BindingInfo(org.apache.cxf.service.model.BindingInfo) ParamType(org.apache.cxf.binding.corba.wsdl.ParamType) ORB(org.omg.CORBA.ORB)

Aggregations

OperationInfo (org.apache.cxf.service.model.OperationInfo)135 BindingOperationInfo (org.apache.cxf.service.model.BindingOperationInfo)87 QName (javax.xml.namespace.QName)58 MessagePartInfo (org.apache.cxf.service.model.MessagePartInfo)44 MessageInfo (org.apache.cxf.service.model.MessageInfo)40 Test (org.junit.Test)38 ServiceInfo (org.apache.cxf.service.model.ServiceInfo)36 InterfaceInfo (org.apache.cxf.service.model.InterfaceInfo)31 Method (java.lang.reflect.Method)25 Endpoint (org.apache.cxf.endpoint.Endpoint)24 Service (org.apache.cxf.service.Service)22 BindingInfo (org.apache.cxf.service.model.BindingInfo)21 EndpointInfo (org.apache.cxf.service.model.EndpointInfo)19 SoapOperationInfo (org.apache.cxf.binding.soap.model.SoapOperationInfo)17 Exchange (org.apache.cxf.message.Exchange)17 ArrayList (java.util.ArrayList)13 UnwrappedOperationInfo (org.apache.cxf.service.model.UnwrappedOperationInfo)13 BindingMessageInfo (org.apache.cxf.service.model.BindingMessageInfo)12 Fault (org.apache.cxf.interceptor.Fault)10 Message (org.apache.cxf.message.Message)10