Search in sources :

Example 1 with KeyIterator

use of lucee.runtime.type.it.KeyIterator in project Lucee by lucee.

the class Axis1Client method keyIterator.

@Override
public Iterator<Collection.Key> keyIterator() {
    List<Collection.Key> list = new ArrayList<Collection.Key>();
    Port port = null;
    try {
        port = getPort();
    } catch (Exception e) {
        return new KeyIterator(new Collection.Key[0]);
    }
    Binding binding = port.getBinding();
    SymbolTable symbolTable = parser.getSymbolTable();
    BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName());
    Iterator itr = bEntry.getParameters().keySet().iterator();
    Operation tmpOp = null;
    // Operation operation = null;
    while (itr.hasNext()) {
        tmpOp = (Operation) itr.next();
        // Parameters p = (Parameters)bEntry.getParameters().get(tmpOp);
        list.add(KeyImpl.init(tmpOp.getName()));
    }
    return new KeyIterator(list.toArray(new Collection.Key[list.size()]));
}
Also used : Binding(javax.wsdl.Binding) KeyIterator(lucee.runtime.type.it.KeyIterator) Port(javax.wsdl.Port) ArrayList(java.util.ArrayList) KeyIterator(lucee.runtime.type.it.KeyIterator) KeyAsStringIterator(lucee.runtime.type.it.KeyAsStringIterator) ObjectsIterator(lucee.runtime.type.it.ObjectsIterator) Iterator(java.util.Iterator) ObjectsEntryIterator(lucee.runtime.type.it.ObjectsEntryIterator) Collection(lucee.runtime.type.Collection) SymbolTable(org.apache.axis.wsdl.symbolTable.SymbolTable) Operation(javax.wsdl.Operation) BindingEntry(org.apache.axis.wsdl.symbolTable.BindingEntry) Key(lucee.runtime.type.Collection.Key) PageException(lucee.runtime.exp.PageException) RemoteException(java.rmi.RemoteException) RPCException(lucee.runtime.net.rpc.RPCException) ServiceException(javax.xml.rpc.ServiceException) MalformedURLException(java.net.MalformedURLException) IOException(java.io.IOException) ExpressionException(lucee.runtime.exp.ExpressionException)

Aggregations

IOException (java.io.IOException)1 MalformedURLException (java.net.MalformedURLException)1 RemoteException (java.rmi.RemoteException)1 ArrayList (java.util.ArrayList)1 Iterator (java.util.Iterator)1 Binding (javax.wsdl.Binding)1 Operation (javax.wsdl.Operation)1 Port (javax.wsdl.Port)1 ServiceException (javax.xml.rpc.ServiceException)1 ExpressionException (lucee.runtime.exp.ExpressionException)1 PageException (lucee.runtime.exp.PageException)1 RPCException (lucee.runtime.net.rpc.RPCException)1 Collection (lucee.runtime.type.Collection)1 Key (lucee.runtime.type.Collection.Key)1 KeyAsStringIterator (lucee.runtime.type.it.KeyAsStringIterator)1 KeyIterator (lucee.runtime.type.it.KeyIterator)1 ObjectsEntryIterator (lucee.runtime.type.it.ObjectsEntryIterator)1 ObjectsIterator (lucee.runtime.type.it.ObjectsIterator)1 BindingEntry (org.apache.axis.wsdl.symbolTable.BindingEntry)1 SymbolTable (org.apache.axis.wsdl.symbolTable.SymbolTable)1