It has been a long time since I've done this, but I think in the past I used a tool like Fiddler so I could see what I was sending and what I was getting back while testing my logic in Preview in InfoPath. That may be a good starting point - because if you can't see what you are sending or what is being returned, it can be pretty hard to determine what the issue is.
Hilary Stoupa
