AWS Client - There has to be a better way

I’m working on building a SOAP client with AWS, i.e:

class PersonAPI < ActionWebService::API::Base
api_method :find_all, :returns => [[Person]]
end

soap_client = ActionWebService::Client::Soap.new(PersonAPI,
“http://…”)
persons = soap_client.find_all

This works well but I think it breaks down quickly when you try to do
real world work. Lets take a moderately complex WSDL file from a bank
with some thirty operations and about fifty different parameter object
types.

Obviously I don’t want to code everyone of these object types. Is there
a better way? What would be nice is something like:

./script/generate web_service_client http://the.bank.com/service.wsdl

that would generate all the ActionWebService::API::Base classes.

Another thought is to just leave the whole AWS idea behind and use
SOAP4R.

Your thoughts?
Matt Bauer

I dumped AWS long ago and just use SOAP4R. Far more reliable and better
supported, though even SOAP4R isn’t perfect either. AWS is going to be
taken out of Rails core and moved into a plugin in the future anyway as
its not being actively worked on.

Cheers

Jonathan


http://www.noodlesinmysandals.com

Jonathan Conway wrote:

I dumped AWS long ago and just use SOAP4R. Far more reliable and better
supported, though even SOAP4R isn’t perfect either. AWS is going to be
taken out of Rails core and moved into a plugin in the future anyway as
its not being actively worked on.

As I understand it, AWS is not long for this world, rails-wise. It’s
very likely to be dropped from the core Rails in a future release.

A.