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);
精彩评论