I need a good tutorial to show how to create a RUBY
SOAP request when I have an example SOAP request file. The example in my
book is next to useless. Also, how can I see that SOAP xml is being sent
and the client response?
I never did find a decent tutorial on using SOAP in Ruby. However, I
did find bits and pieces in blogs and list archives. There's actually
quite a bit of information in the SOAP4r trac (the Ruby SOAP code *is*
SOAP4r):
The biggest "ah-hah" moment for me was figuring out that you don't
have generate a bunch of classes from WSDL in Ruby like in other
languages... you can, but Ruby is dynamic enough that you can just
create a driver instance from the WSDL and all the signatures in that
WSDL become available as method calls on the driver [1]. Similarly,
the SOAP response object is accessible as a nested hash of data or as
pseudo-method calls.
Then I can call every SOAP call listed in that wsdl just by calling
the name on the driver:
response = soap_driver.someWebService({ hash of params })
···
On Jun 13, 2:11 pm, David <m...@me.com> wrote:
I need a good tutorial to show how to create a RUBY
SOAP request when I have an example SOAP request file. The example in my
book is next to useless. Also, how can I see that SOAP xml is being sent
and the client response?