Generally, we don't help in assignments. Asking whether you're on the right track with your own work is quite alright, though.
There's lots of sites that provide tutorials or download scripts to do what you want or something like it, and quite some that will teach you how to write it on your own. Searching these forums or <http://www.wsabstract.com/
> might also get you what you want.