Process incoming SOAP requests?

We currently have a SOAP server that processes incoming requests. I’d
like to rewrite this system (maintaining the same SOAP interfaces)
utilizing RoR. What is the easiest way to go about this?

Thanks.

Jim J. wrote:

We currently have a SOAP server that processes incoming requests. I’d
like to rewrite this system (maintaining the same SOAP interfaces)
utilizing RoR. What is the easiest way to go about this?

Thanks.

Hey Jim,

I’m going to skip the foray and assume you know how rails works. If you
don’t, you’d best read at minimum “Why’s Poignant Guide to Ruby” (a
hilarious read) and everey O’Reilly tutorial on Rails web pages.

I’m creating a SOAP transaction server and I dove headfirst into SOAP
with ROR a month ago. Actually, ROR is probably the easiest of all
languages due to ActionWebService! It will automatically generate/manage
your WSDL for you.

First, read the manual on ActionWebService:
http://manuals.rubyonrails.com/read/book/10

Then read follow this real world example:
http://wiki.rubyonrails.com/rails/pages/HowToGetStartedWithActionWebService

Then, expand the examples by reading the API here:
http://rails.rubyonrails.com/files/vendor/rails/actionwebservice/README.html

Finally, read up on how to use ActionWebService::Struct classes. Rails
does not allow you to send an ActiveRecord::Base class over-the-wire, so
it gives you a J2EE bean-like class to add member variables to:
ActionWebService::Struct. If you use a ActionWebService::Struct in your
code, rails will automatically add the class to your WSDL.

Be sure to add web_service_scaffold :invoke to your controller when you
are first getting started. Then you can navigate to
rubyhost/YourControllerName/invoke and rails will auto-generate a page
that allows to run your SOAP RPC Methods! It’s cool!

Anyway, good luck.
-Jon

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs