Menu

How can i return more than one parameter?

Help
2008-06-13
2013-04-24
  • luis carvalho

    luis carvalho - 2008-06-13

    Hi to all.

    Is there a way to return more than one parameter in order to make an xml with more than one param, like this one:

    <methodCall>
    <methodName>echo</methodName>
      <params>
       <param>
        <value>
         <string>Hello</string>
        </value>
       </param>
       <param>
        <value>
         <i4>123</i4>
        </value>
       </param>
      </params>
    </methodCall>

    Thanks in advance.

    Regards

     
    • luis carvalho

      luis carvalho - 2008-06-13

      Well, it seems that a xml response have only one param.

      Thanks

       
    • Chris Morley

      Chris Morley - 2008-06-13

      Just make your response value an array or struct.

       
    • luis carvalho

      luis carvalho - 2008-06-26

      Yes, thanks :).
      Well, the objective of my question was to make a xml-rpc response that takes more than one parameter, but the specifications of xml-rpc shows that a xml-rpc response only have a tag <param>. But thanks for your response.
      Regards.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.