# Problem with ActiveRecord and ActionWebService?

**URL:** <https://www.ruby-forum.com/t/problem-with-activerecord-and-actionwebservice/197283>\
**Category:** Rails\
**Created:** [April 10, 2008, 2:19pm UTC](https://www.ruby-forum.com/t/problem-with-activerecord-and-actionwebservice/197283 "2008-04-10T14:19:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![varunkumargoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ed8c4c/32.png) [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Post date:** [April 10, 2008, 2:19pm UTC](https://www.ruby-forum.com/t/problem-with-activerecord-and-actionwebservice/197283/1 "2008-04-10T14:19:28Z")

</div>

Hi All,  
I am creating one webservice in ror.I have one function called  
sum(int1,int2) and it’s working fine to show output.Now i wanna save the  
value of int1 and int2 into database through my webservices.  
But i am getting error badconnect.I configured database.yml file  
too.Please tell me suggestion i wanna use ActionwebService and Active  
Record together.  
Can i do this.If yes,then how?  
Looking for your suggestion gyes.  
Help me.  
Thanks  
Varun G.

---

<div class="post-metadata">

**Author:** ![varunkumargoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ed8c4c/32.png) [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Post date:** [April 10, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/problem-with-activerecord-and-actionwebservice/197283/2 "2008-04-10T14:30:13Z")

</div>

On 10 Apr 2008, at 13:19, Varun G. wrote:

> Hi All,  
> I am creating one webservice in ror.I have one function called  
> sum(int1,int2) and it’s working fine to show output.Now i wanna save  
> the  
> value of int1 and int2 into database through my webservices.  
> But i am getting error badconnect.I configured database.yml file  
> too.Please tell me suggestion i wanna use ActionwebService and Active  
> Record together.

Does sound like a problem, but i think you’ll need to tell us a little  
more in order to pinpoint where the problem is.

Fred

---

<div class="post-metadata">

**Author:** ![varunkumargoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ed8c4c/32.png) [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Post date:** [April 10, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/problem-with-activerecord-and-actionwebservice/197283/3 "2008-04-10T15:19:51Z")

</div>

Frederick C. wrote:

> On 10 Apr 2008, at 13:19, Varun G. wrote:
> 
> > Hi All,  
> > I am creating one webservice in ror.I have one function called  
> > sum(int1,int2) and it’s working fine to show output.Now i wanna save  
> > the  
> > value of int1 and int2 into database through my webservices.  
> > But i am getting error badconnect.I configured database.yml file  
> > too.Please tell me suggestion i wanna use ActionwebService and Active  
> > Record together.
> 
> Does sound like a problem, but i think you’ll need to tell us a little  
> more in order to pinpoint where the problem is.
> 
> Fred

Hi Fred,  
Thanks for ur reply.Actually i have my webservices that i am  
using with my application both in ror.Now what ever parameter i will  
pass with webservice function that should save into database.i configure  
databse.yml and everything but still showing problem.Tell me the reason.  
Thanks  
Varun

---

<div class="post-metadata">

**Author:** ![varunkumargoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ed8c4c/32.png) [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Post date:** [April 10, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/problem-with-activerecord-and-actionwebservice/197283/4 "2008-04-10T15:49:42Z")

</div>

On 10 Apr 2008, at 14:19, Varun G. wrote:

> > > But i am getting error badconnect.I configured database.yml file  
> > > Hi Fred,  
> > > Thanks for ur reply.Actually i have my webservices that i am  
> > > using with my application both in ror.Now what ever parameter i will  
> > > pass with webservice function that should save into database.i  
> > > configure  
> > > databse.yml and everything but still showing problem.Tell me the  
> > > reason.  
> > > Thanks  
> > > Varun

I don’t have the faintest clue, because I haven’t seen a single line  
of code, I don’t know how you are attempting to use the webservice,  
exactly what error is returned, who is raising the error (ie is the  
the app providing the web service that can’t connect to the db or is  
it the app making the webservice call that cannot connect to the app  
providing the web service). Or to summarise, no one here is psychic  
and we can’t guess what you’re actually doing.

Fred
