A: 

Check this out: http://sourceforge.net/projects/mtgr8-a3/ It has the SOAP library in it that would provide some guidelines for you.