snichol     2002/11/11 06:10:27

  Modified:    java/samples/stockquote README StockQuoteService.java
  Log:
  Use a service kindly created by xmethods.net to replace the previous
  service at the defunct xmltoday.com (which had been operated by Binary
  Evolution, creators of VelociGen).
  
  Revision  Changes    Path
  1.6       +4 -1      xml-soap/java/samples/stockquote/README
  
  Index: README
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/samples/stockquote/README,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- README    7 Nov 2000 13:48:19 -0000       1.5
  +++ README    11 Nov 2002 14:10:27 -0000      1.6
  @@ -35,7 +35,10 @@
   Explanation:
   -----------
   
  -Retrieves a 20-min delayed quote for a ticker symbol.
  +Retrieves a 20-min delayed quote for a ticker symbol.  The sample SOAP service
  +itself relies on an external service hosted by xmethods.net.  Therefore, the
  +servlet container and/or Apache SOAP webapp must be configured for any proxy that
  +may be required.
   
   
   Sample Usage:
  
  
  
  1.7       +2 -2      xml-soap/java/samples/stockquote/StockQuoteService.java
  
  Index: StockQuoteService.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/samples/stockquote/StockQuoteService.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- StockQuoteService.java    17 May 2001 21:24:15 -0000      1.6
  +++ StockQuoteService.java    11 Nov 2002 14:10:27 -0000      1.7
  @@ -74,9 +74,9 @@
   
     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 ..
  -    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);
       InputStream is = url.openStream ();
       Document d = xdb.parse(is);
       Element e = d.getDocumentElement ();
  
  
  

--
To unsubscribe, e-mail:   <mailto:soap-dev-unsubscribe@;xml.apache.org>
For additional commands, e-mail: <mailto:soap-dev-help@;xml.apache.org>

Reply via email to