My application needs to make a call to a webservice via an HTTP post.
The webservice responds with an integer and a string. I’ve got this
working.
I need to call this web service from a couple of different controllers.
I don’t want it to render a view. Would I put this functionality in
application_helper.rb or where would the best place be to put this?
Regards,
What I’ve done in the past is have a FooProxy class tha handles the
details of talking to the webservice in question. It also makes testing
a little easier since I just have to mock out the FooProxy class.
Fred
On Oct 12, 2006, at 12:30 PM, jim dandy wrote:
My application needs to make a call to a webservice via an HTTP post.
The webservice responds with an integer and a string. I’ve got this
working.
I need to call this web service from a couple of different
controllers.
I don’t want it to render a view. Would I put this functionality in
application_helper.rb or where would the best place be to put this?
There, or a model of it’s own.
–
– Tom M., CTO
– Engine Y., Ruby on Rails Hosting
– Reliability, Ease of Use, Scalability
– (866) 518-YARD (9273)