Return-Path: Mailing-List: contact soap-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list soap-dev@xml.apache.org Delivered-To: moderator for soap-dev@xml.apache.org Received: (qmail 18982 invoked by uid 500); 11 Nov 2002 14:10:28 -0000 Delivered-To: apmail-xml-soap-cvs@apache.org Received: (qmail 18979 invoked from network); 11 Nov 2002 14:10:28 -0000 Received: from icarus.apache.org (63.251.56.143) by daedalus.apache.org with SMTP; 11 Nov 2002 14:10:28 -0000 Received: (qmail 67439 invoked by uid 1527); 11 Nov 2002 14:10:27 -0000 Date: 11 Nov 2002 14:10:27 -0000 Message-ID: <20021111141027.67438.qmail@icarus.apache.org> From: snichol@apache.org To: xml-soap-cvs@apache.org Subject: cvs commit: xml-soap/java/samples/stockquote README StockQuoteService.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 ();