# Problem with Action Web service?

**URL:** <https://www.ruby-forum.com/t/problem-with-action-web-service/196681>\
**Category:** Rails\
**Created:** [May 14, 2008, 2:35pm UTC](https://www.ruby-forum.com/t/problem-with-action-web-service/196681 "2008-05-14T14:35:12Z")\
**Posts on this page:** 2\
**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:** [May 14, 2008, 2:35pm UTC](https://www.ruby-forum.com/t/problem-with-action-web-service/196681/1 "2008-05-14T14:35:12Z")

</div>

Hi All,  
I created one webservice using ROR.It’s working fine but now i  
have some questions.

1. Whenever i am accessing my webservice through my another ROR  
application then i am getting the result as an array.Please tell how can  
i get the result as XML i hope for that i have to change in my  
webservice so please tell me how to do?

2. If array is fine then suppose some persons will call my webservice  
through JAVA application then please tell me that he will be able to  
read that array through JAVA or not?Or for that i have to give result as  
XML only.

that array is coming like this  
#SOAP::Mapping::Object:0x335bb98  
#SOAP::Mapping::Object:0x335b1c0

Please give your suggestion.I hope you got me?

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:** [May 14, 2008, 2:41pm UTC](https://www.ruby-forum.com/t/problem-with-action-web-service/196681/2 "2008-05-14T14:41:05Z")

</div>

On May 14, 1:35 pm, Varun G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi All,  
> I created one webservice using ROR.It’s working fine but now i  
> have some questions.
> 
> 1. Whenever i am accessing my webservice through my another ROR  
> application then i am getting the result as an array.Please tell how can  
> i get the result as XML i hope for that i have to change in my  
> webservice so please tell me how to do?

I may be misunderstanding completely, but I think the thing here is  
just that rails has already parsed the xml for you and turned it into  
a bunch of ruby objects.

Fred
