FileDocCategorySizeDatePackage
StockQuoteApp.javaAPI DocExample892Sat Jun 29 09:49:50 BST 2002javasoap.book.ch11.client

StockQuoteApp

public class StockQuoteApp extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

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