dug         2002/11/11 06:54:07

  Modified:    java/samples/stock StockQuoteService.java
                        StockQuoteService.jws
  Log:
  Use xmethods instead of xmltoday
  
  Revision  Changes    Path
  1.13      +3 -3      xml-axis/java/samples/stock/StockQuoteService.java
  
  Index: StockQuoteService.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/stock/StockQuoteService.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- StockQuoteService.java    9 Nov 2001 00:02:56 -0000       1.12
  +++ StockQuoteService.java    11 Nov 2002 14:54:07 -0000      1.13
  @@ -76,13 +76,13 @@
   
     public float getQuote (String symbol) throws Exception {
       // get a real (delayed by 20min) stockquote from 
  -    // http://www.xmltoday.com/examples/stockquote/. The IP addr 
  +    // http://services.xmethods.net/axis/. The IP addr 
       // below came from the host that the above form posts to ..
   
       if ( symbol.equals("XXX") ) return( (float) 55.25 );
   
  -    URL          url = new URL( "http://www.xmltoday.com/examples/"; +
  -                                "stockquote/getxmlquote.vep?s="+symbol );
  +    URL          url = new URL( "http://services.xmethods.net/axis/getQuote?s=";
  +                                + symbol );
   
       DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
       DocumentBuilder        db  = dbf.newDocumentBuilder();
  
  
  
  1.6       +3 -3      xml-axis/java/samples/stock/StockQuoteService.jws
  
  Index: StockQuoteService.jws
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/stock/StockQuoteService.jws,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- StockQuoteService.jws     5 Sep 2001 17:22:58 -0000       1.5
  +++ StockQuoteService.jws     11 Nov 2002 14:54:07 -0000      1.6
  @@ -71,7 +71,7 @@
   public class StockQuoteService {
     public float getQuote (String symbol) throws Exception {
       // get a real (delayed by 20min) stockquote from 
  -    // http://www.xmltoday.com/examples/stockquote/. The IP addr 
  +    // http://services.xmethods.net/axis/. The IP addr 
       // below came from the host that the above form posts to ..
   
       // NOTE THAT THIS RETURNS 66.25 WHERE THE ORDINARY EXAMPLE RETURNS 55.25!
  @@ -79,8 +79,8 @@
   
       Document doc = null ;
       
  -    doc = XMLUtils.newDocument( "http://www.xmltoday.com/examples/"; +
  -                                "stockquote/getxmlquote.vep?s="+symbol );
  +    doc = XMLUtils.newDocument( "http://services.xmethods.net/axis/getQuote?s=";
  +                                +symbol );
   
       Element  elem = doc.getDocumentElement();
       NodeList list = elem.getElementsByTagName("stock_quote");
  
  
  


Reply via email to