简体   繁体   中英

writing a simple ofx4j program

I have been using http://ofx4j.sourceforge.net/userguide.html as a guide to write a small java program to download my bank account statement from wells fargo. I keep getting an error saying Invalid Signon. I have the right url. I am using the same password and username as I use to logon to their webpage. Does anyone have any other simple samples that I could look at or use?

I had the same problem. I was trying to log into Chase Bank but I was getting an Invalid Signon. The problem that I had is that I was using the wrong data, oxf4j might have obsolete data stored for the banks it has stored. Go to gnucash to get the right updated setting for your bank: http://wiki.gnucash.org/wiki/OFX_Direct_Connect_Bank_Settings . Then you need to create a new BaseFinancialInstitutionData object like this (this example is for chase credit card):

BaseFinancialInstitutionData data =  new BaseFinancialInstitutionData();
data.setFinancialInstitutionId("10898");
data.setOFXURL(new URL("https://ofx.chase.com"));
data.setOrganization("B1");
FinancialInstitutionService service = new FinancialInstitutionServiceImpl();
FinancialInstitution fi = service.getFinancialInstitution(data);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM