[Rails] A Struct inside of a Struct

ActionWebService::Struct aknott at mac.com
Wed Jul 26 11:49:54 GMT 2006


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/.


More information about the Rails mailing list