use of org.apache.axis.wsdl.symbolTable.SymTabEntry in project tdi-studio-se by Talend.
the class DynamicInvoker method getSymTabEntry.
/**
* Method getSymTabEntry
*
* @param qname
* @param cls
*
* @return
*/
public SymTabEntry getSymTabEntry(QName qname, Class cls) {
HashMap map = wsdlParser.getSymbolTable().getHashMap();
Iterator iterator = map.entrySet().iterator();
while (iterator.hasNext()) {
Map.Entry entry = (Map.Entry) iterator.next();
QName key = (QName) entry.getKey();
Vector v = (Vector) entry.getValue();
if ((qname == null) || qname.equals(qname)) {
for (int i = 0; i < v.size(); ++i) {
SymTabEntry symTabEntry = (SymTabEntry) v.elementAt(i);
if (cls.isInstance(symTabEntry)) {
return symTabEntry;
}
}
}
}
return null;
}
use of org.apache.axis.wsdl.symbolTable.SymTabEntry 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();
}
Aggregations