Forum: Ruby on Rails post to a webservice in an integration test?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6c56a8f8281be55f204b1ab46b31ed9e?d=identicon&s=25 Jaime Bermudez (Guest)
on 2006-05-25 16:08
(Received via mailing list)
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
This topic is locked and can not be replied to.