Hi... I really need some help on something I am working on... I am trying to create an XML-RPC webservice that sends the following as a response... As you can see it looks like I can use a Struct with a boolean: member but I don''t seem to be able to have another Struct as a member? Am I barking up the wrong tree trying to do it this way? Should I try something else? I would really appreciate any help on this... <?xml version="1.0" encoding="UTF-8"?> <methodResponse> <params> <param> <value> <struct> <member> <name>success</name> <value> <boolean>1</boolean> </value> </member> <member> <name>responseData</name> <value> <struct> <member> <name>type</name> <value> <string>C</string> </value> </member> </struct> </value> </member> </struct> </value> </param> </params> </methodResponse> -- Posted via http://www.ruby-forum.com/.
Andrew Knott (was ActionWebService::Struct oops!)
2006-Jul-26 16:07 UTC
[Rails] Re: A Struct inside of a Struct (solved)
Just for everyone else, I''ve worked it out... You can have Structs as members! easy Andrew ActionWebService::Struct wrote:> Hi... > > I really need some help on something I am working on... I am trying to > create an XML-RPC webservice that sends the following as a response... > As you can see it looks like I can use a Struct with a boolean: member > but I don''t seem to be able to have another Struct as a member? Am I > barking up the wrong tree trying to do it this way? Should I try > something else? > > I would really appreciate any help on this... > > > <?xml version="1.0" encoding="UTF-8"?> > <methodResponse> > <params> > <param> > <value> > <struct> > <member> > <name>success</name> > <value> > <boolean>1</boolean> > </value> > </member> > <member> > <name>responseData</name> > <value> > <struct> > <member> > <name>type</name> > <value> > <string>C</string> > </value> > </member> > </struct> > </value> > </member> > </struct> > </value> > </param> > </params> > </methodResponse>-- Posted via http://www.ruby-forum.com/.
On Wed, Jul 26, 2006 at 01:49:54PM +0200, ActionWebService::Struct wrote:> I really need some help on something I am working on... I am trying to > create an XML-RPC webservice that sends the following as a response... > As you can see it looks like I can use a Struct with a boolean: member > but I don''t seem to be able to have another Struct as a member? Am I > barking up the wrong tree trying to do it this way? Should I try > something else? > > I would really appreciate any help on this...I already posted a response to this in your previous thread on the topic, but you don''t seem to have responsed to that message. - Matt