# Reusable code in AWS

**URL:** <https://www.ruby-forum.com/t/reusable-code-in-aws/81983>\
**Category:** Rails\
**Created:** [January 16, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/reusable-code-in-aws/81983 "2007-01-16T18:25:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ed\_Hickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/258eb7/32.png) [@Ed\_Hickey](https://www.ruby-forum.com/u/Ed_Hickey)\
**Post date:** [January 16, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/reusable-code-in-aws/81983/1 "2007-01-16T18:25:54Z")

</div>

From what I’ve read (manual site, AWDWR), I don’t see the ability to  
easily  
re-use your ActionController methods in your ActionWebServices. The  
problem  
I’m finding is that the AWS methods require arguments in their  
definition  
whereas the ActionController methods get theirs from the post/get  
(params).  
I must be missing something obvious, no? If I’m not, then I can really  
see  
why ActiveResource/REST are more attractive…

–  
Ed Hickey  
Developer  
Litmus Media  
816-533-0409  
removed\_email\_address@domain.invalid  
A Member of Think Partnership, Inc  
[www.ThinkPartnership.com](http://www.ThinkPartnership.com)  
Amex ticker symbol: THK

---

<div class="post-metadata">

**Author:** ![Ed\_Hickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/258eb7/32.png) [@Ed\_Hickey](https://www.ruby-forum.com/u/Ed_Hickey)\
**Post date:** [January 16, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/reusable-code-in-aws/81983/2 "2007-01-16T19:04:02Z")

</div>

Ed Hickey wrote:

> I must be missing something obvious, no? If I’m not, then I can really  
> see why ActiveResource/REST are more attractive…

AWS and ARes aren’t the same thing: AWS (the “SOAP interface”) is  
candidate for deprecation and ARes (the “REST interface”) won’t be  
included in the Rails 1.2 core yet but is available from SVN.

ARes is what integrates nicely with RESTful controllers and is probably  
you’re looking for.

- Roderick

---

<div class="post-metadata">

**Author:** ![Ed\_Hickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/258eb7/32.png) [@Ed\_Hickey](https://www.ruby-forum.com/u/Ed_Hickey)\
**Post date:** [January 16, 2007, 7:15pm UTC](https://www.ruby-forum.com/t/reusable-code-in-aws/81983/3 "2007-01-16T19:15:02Z")

</div>

On 1/16/07, Roderick van Domburg [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Ed Hickey wrote:
> 
> > I must be missing something obvious, no? If I’m not, then I can really  
> > see why ActiveResource/REST are more attractive…
> 
> AWS and ARes aren’t the same thing: AWS (the “SOAP interface”) is  
> candidate for deprecation and ARes (the “REST interface”) won’t be  
> included in the Rails 1.2 core yet but is available from SVN.

I know. I didn’t mean to make it sound like they were the same. I was  
saying that, in my experience with AWS, I am beginning to understand why  
an  
ARes/REST implementation would be a simpler route than AWS.

ARes is what integrates nicely with RESTful controllers and is probably

> you’re looking for.

That’s what it’s looking like. It just seems odd that rails, with it’s  
emphasise on DRY would make you rewrite code in you AWS.

Thanks,  
ed

---

<div class="post-metadata">

**Author:** ![Ed\_Hickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/258eb7/32.png) [@Ed\_Hickey](https://www.ruby-forum.com/u/Ed_Hickey)\
**Post date:** [January 16, 2007, 7:29pm UTC](https://www.ruby-forum.com/t/reusable-code-in-aws/81983/4 "2007-01-16T19:29:33Z")

</div>

Ed Hickey wrote:

> That’s what it’s looking like. It just seems odd that rails, with it’s  
> emphasise on DRY would make you rewrite code in you AWS.

Indeed - I misread you original post. What can I say? I agree with you  
🙂 and it’s good to see that Rails is evolving towards REST. Looking  
forward to the core inclusion of ARes.

- Roderick
