Saturday, March 26, 2011

Google App Engine Banking Server

Now that my wallet is up and running I need some sort of server to upload my transactions to and download my banking statements from.

My home banking software (KMyMoney) supports two bank statement sync formats. There is a java library for both of them
OFX: http://ofx4j.sourceforge.net/
HBCI: http://hbci4java.kapott.org/

HBCI ships with more documentation, and since my real Bank uses this standard, I already know that it can work with KMyMoney. Compiling this library is a pain. After getting errors of the kind "Using enum as an identifier is illegal" and miss matching library version, I decide to check the date of the last commit. Great, Christmas 2002.

OFX is badly documented, but it builds easily and it is open source, so who needs documentation anyway? Yes, there is an unmarshaller class.



I only need an example OFX file and I can figure it all out. But no, it can't be that easy. They OFX main website http://www.ofx.net/ just has to be down. Maybe the mailing list can help me.

Days later ... no respose, but the website is up again. And they ship with examples:
http://www.ofx.net/OFXExamplesPage/OFXExamples.aspx

Some unmarshalling magic later:

Parsing a request


Generating a response


The next day, my mailinglist post is answered.

No comments:

Post a Comment