Loading ...
Sorry, an error occurred while loading the content.

1073XMLRPC::Lite and checking for a returned array

Expand Messages
  • magnus1er
    Dec 4, 2001
    • 0 Attachment
      Hello,

      A very basic question but I can't find an answer (on the web at
      least).

      I'm learning XMLRPC::Lite but I can't find a way to access a returned
      array
      from the server.

      For example the following is returned by the xmlrpc server:

      <?xml version="1.0"
      encoding="UTF-8"?><methodResponse><params><param><value><string>
      Salut mon gros
      </string></value></param><param><value><string>Ceci est un test
      </string></value></param><param><value><string>Mais il manque des
      points
      </string></value></param><param><value><string>........
      </string></value></param><param><value><string>ok
      </string></value></param><param><value><string>.......
      </string></value></param><param><value><string>M
      </string></value></param></params></methodResponse>

      Here's the client script:

      #!/usr/bin/perl -w

      use XMLRPC::Lite;

      my $res = XMLRPC::Lite
      -> proxy('http://192.168.0.3:7777')
      -> call('Util.test', "/home/emm/xmlrpctest")
      -> result;

      I tried
      my @res = $res->paramsin
      following the soaplite intro at soaplite.com with no avail, I get an
      error:
      ==>Can't locate object method "paramsin" via package "Salut mon gros

      TIA

      -Emmanuel
    • Show all 4 messages in this topic