Search in sources :

Example 1 with ServiceEntry

use of org.apache.axis.wsdl.symbolTable.ServiceEntry in project tdi-studio-se by Talend.

the class DynamicInvoker method selectService.

/**
     * Method selectService
     * 
     * @param def
     * @param serviceNS
     * @param serviceName
     * 
     * @return
     * 
     * @throws Exception
     */
public Service selectService(String serviceNS, String serviceName) throws Exception {
    QName serviceQName = (((serviceNS != null) && (serviceName != null)) ? new QName(serviceNS, serviceName) : null);
    ServiceEntry serviceEntry = (ServiceEntry) getSymTabEntry(serviceQName, ServiceEntry.class);
    return serviceEntry.getService();
}
Also used : QName(javax.xml.namespace.QName) ServiceEntry(org.apache.axis.wsdl.symbolTable.ServiceEntry)

Example 2 with ServiceEntry

use of org.apache.axis.wsdl.symbolTable.ServiceEntry in project Lucee by lucee.

the class Axis1Client method getWSDLService.

public javax.wsdl.Service getWSDLService() throws PageException {
    if (!wsdlExecuted) {
        try {
            parser.run(wsdlUrl);
            wsdlExecuted = true;
        } catch (Throwable t) {
            ExceptionUtil.rethrowIfNecessary(t);
            throw Caster.toPageException(t);
        }
    }
    SymTabEntry symTabEntry = null;
    Map.Entry entry = null;
    Vector v = null;
    Iterator<Map.Entry> it = parser.getSymbolTable().getHashMap().entrySet().iterator();
    while (it.hasNext()) {
        entry = it.next();
        v = (Vector) entry.getValue();
        for (int i = 0; i < v.size(); i++) {
            if (!(org.apache.axis.wsdl.symbolTable.ServiceEntry.class).isInstance(v.elementAt(i)))
                continue;
            symTabEntry = (SymTabEntry) v.elementAt(i);
        // break;
        }
    }
    if (symTabEntry == null)
        throw new RPCException("Can't locate service entry in WSDL");
    return ((ServiceEntry) symTabEntry).getService();
}
Also used : Entry(java.util.Map.Entry) ServiceEntry(org.apache.axis.wsdl.symbolTable.ServiceEntry) BindingEntry(org.apache.axis.wsdl.symbolTable.BindingEntry) Entry(java.util.Map.Entry) SymTabEntry(org.apache.axis.wsdl.symbolTable.SymTabEntry) TypeEntry(org.apache.axis.wsdl.symbolTable.TypeEntry) ServiceEntry(org.apache.axis.wsdl.symbolTable.ServiceEntry) RPCException(lucee.runtime.net.rpc.RPCException) SymTabEntry(org.apache.axis.wsdl.symbolTable.SymTabEntry) Map(java.util.Map) Vector(java.util.Vector)

Aggregations

ServiceEntry (org.apache.axis.wsdl.symbolTable.ServiceEntry)2 Map (java.util.Map)1 Entry (java.util.Map.Entry)1 Vector (java.util.Vector)1 QName (javax.xml.namespace.QName)1 RPCException (lucee.runtime.net.rpc.RPCException)1 BindingEntry (org.apache.axis.wsdl.symbolTable.BindingEntry)1 SymTabEntry (org.apache.axis.wsdl.symbolTable.SymTabEntry)1 TypeEntry (org.apache.axis.wsdl.symbolTable.TypeEntry)1