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();
}
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();
}
Aggregations