proxy = (XregistryPortType)client.generateDynamicStub(XregistryPortType.class);
userDN = context.getUserDN();
System.out.println("Create Stub for "+ registryServiceWsdlUrl + " using "+ userDN);
}
public String[] app2Hosts(String appName) throws XregistryException {
App2HostsDocument document = App2HostsDocument.Factory.newInstance();
document.addNewApp2Hosts().setAppName(appName);
App2HostsResponseDocument responseDocument = proxy.app2Hosts(document);
return responseDocument.getApp2HostsResponse().getHostArray();
}