FileDocCategorySizeDatePackage
StockQuoteApp.javaAPI DocExample775Sat Jun 29 09:50:46 BST 2002javasoap.book.ch11.glueclient

StockQuoteApp

public class StockQuoteApp extends Object

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

	
      try {	
         CorpDataServiceImpl proxy = 
             new CorpDataServiceImpl();
         CorpDataServiceSoap_Stub stub =
             (CorpDataServiceSoap_Stub)proxy.getCorpDataServiceSoap();
         stub._setTargetEndpoint(args[0]);	
         Quote quote = stub.getQuote("IBM");
         System.out.println("Price is " + quote.get_lastPrice());	
         System.out.println("Volume is " + quote.get_volume());	
         System.out.println("Timestamp is " + quote.get_timeStamp());	
         System.out.println("Change is " + quote.get_change());	
      } catch (Exception ex) {	
        ex.printStackTrace();	
      }