try {
CorpDataServicesProxyImpl proxy =
new CorpDataServicesProxyImpl();
IStockServiceProxy_Stub stub =
(IStockServiceProxy_Stub)proxy.getIStockServiceProxy();
stub._setTargetEndpoint(args[0]);
ProxyQuote quote = stub.getStockQuote("IBM");
System.out.println("Price is " + quote.getLast());
System.out.println("Volume is " + quote.getVol());
System.out.println("Timestamp is " + quote.getTime());
System.out.println("Diff is " + quote.getDiff());
} catch (Exception ex) {
ex.printStackTrace();
}