Hi
I am developing an android application, in which I have to create a portfolio at Google Finance(using libraries). For this I am using API from link below:
http://code.google.com/apis/finance/doc ... Portfolios
And
I am getting the error as follows:
Could not find method javax.xml.parsers.SAXParserFactory.getSchema, referenced from method com.google.gdata.util.common.xml.parsing.SecureGenericXMLFactory$SecureSAXParserFactory.getSchema
Plz see the below code :
private static PortfolioEntry makePortfolioEntry(String portfolioName, String currencyCode) {
PortfolioEntry entry = new PortfolioEntry();
entry.setTitle(new PlainTextConstruct(portfolioName));
PortfolioData data = new PortfolioData();
data.setCurrencyCode(currencyCode);
entry.setPortfolioData(data);
return entry;
}
private static void insertPortfolioEntry(FinanceService service, String feedUrl, PortfolioEntry entry)
throws IOException, MalformedURLException, ServiceException {
System.out.println("Inserting Entry at location: " + feedUrl);
service.insert(new URL(feedUrl), entry);
}
Can smbody help me out ???
I am developing an android application, in which I have to create a portfolio at Google Finance(using libraries). For this I am using API from link below:
http://code.google.com/apis/finance/doc ... Portfolios
And
I am getting the error as follows:
Could not find method javax.xml.parsers.SAXParserFactory.getSchema, referenced from method com.google.gdata.util.common.xml.parsing.SecureGenericXMLFactory$SecureSAXParserFactory.getSchema
Plz see the below code :
private static PortfolioEntry makePortfolioEntry(String portfolioName, String currencyCode) {
PortfolioEntry entry = new PortfolioEntry();
entry.setTitle(new PlainTextConstruct(portfolioName));
PortfolioData data = new PortfolioData();
data.setCurrencyCode(currencyCode);
entry.setPortfolioData(data);
return entry;
}
private static void insertPortfolioEntry(FinanceService service, String feedUrl, PortfolioEntry entry)
throws IOException, MalformedURLException, ServiceException {
System.out.println("Inserting Entry at location: " + feedUrl);
service.insert(new URL(feedUrl), entry);
}
Can smbody help me out ???