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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jaime Bermudez (Guest)
on 2006-05-25 18:08
(Received via mailing list)
Hey railers,

Just wondering if anyone out there knows how to generate a SOAP post
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|
        ... "mywebservice/api", {:username => "username",
:password =>
"password"}, #SOAP header info?

Any examples would be much appreciated.


This topic is locked and can not be replied to.