FileDocCategorySizeDatePackage
CorporateDataService.javaAPI DocExample746Tue Jan 15 11:42:58 GMT 2002javasoap.book.ch8

CorporateDataService

public class CorporateDataService extends Object

Fields Summary
Constructors Summary
public CorporateDataService()

   
Methods Summary
public org.w3c.dom.ElementgetDataForSymbol(java.lang.String symbol)


      FileReader fr = new FileReader(symbol + ".xml");
      DocumentBuilder xdb = XMLParserUtils.getXMLDocBuilder();
      Document doc = xdb.parse(new InputSource (fr));
      if (doc == null) {
         throw new SOAPException(Constants.FAULT_CODE_SERVER, 
                           "Invalid Data");
      }

      return doc.getDocumentElement();