Hi
This is just from the top of my head, so don't expect it to work...
However it might give you some clues on how to get it all done.
Router A
int s0
ip address 10.0.0.1 255.255.255.0
encap frame-relay
Router B
frame-relay switching
int s0
ip address 10.0.0.2 255.255.255.0
encap frame relay
frame-relay map dlci 100
Hope this helps you a bit, if you still don't make it work, I can look up the correct way for you later.
-Katamann