# Returning array/list of custom structs in webservice

**URL:** <https://www.ruby-forum.com/t/returning-array-list-of-custom-structs-in-webservice/89590>\
**Category:** Rails\
**Created:** [March 21, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/returning-array-list-of-custom-structs-in-webservice/89590 "2007-03-21T12:36:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4bbf92/32.png) [@glenn](https://www.ruby-forum.com/u/glenn)\
**Post date:** [March 21, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/returning-array-list-of-custom-structs-in-webservice/89590/1 "2007-03-21T12:36:33Z")

</div>

I’m trying to create an ActionWebService to be consumed by another  
service. I’ve created my own struct, and I’ve set the return to be  
[[MyStruct]] to return an array of MyStructs. The problem is, the  
consumer doesn’t fully support SOAP arrays and wants me to return it  
as either a document-literal or rpc-literal.

Any ideas? I’m out of them
