Post to a webservice in an integration test?


#1

Hey railers,

Just wondering if anyone out there knows how to generate a SOAP post
using
the session object in an integration test. I couldn’t find
documentation on
how to do so, but perhaps I’m overlooking something. I would like to
call a
webservice on my server in the following block:

def login
open_session do |sess|

sess.post “mywebservice/api”, {:username => “username”,
:password =>
“password”}, #SOAP header info?
end
end

Any examples would be much appreciated.

Thanks,

Jaime