Menu

Empty Arrays?

Help
Anonymous
2003-04-20
2003-04-21
  • Anonymous

    Anonymous - 2003-04-20

    Hi,

    I'm currently using the Marquee XmlRpc library on the server side (running on java) and Eric Kidd's XmlRpc library for the (C++) clients. I'm evaluating XmlRpc++ and are impressed of the functionality.

    The server side defines lots of methods with different sets of parameters and here's the problem:

    Say the second parameter of a method is defined as an array (vector in java) and there is currently no element for this array at the client side, how can I have XmlRpc++ to transfer an empty array to match the method definition on the server side?

    Any help is greatly appreciated,
    Erik

     
    • Chris Morley

      Chris Morley - 2003-04-21

      // The setSize(int) method coerces the value to an array
      XmlRpcValue emptyArray;
      emptyArray.setSize(0);

       

Log in to post a comment.