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

SOAP Serverresponse with compleyType

Expand Messages
  • Philip Reetz
    ... Hash: SHA1 Hello, I ve got the following problem: I m using SOAP::Lite 0.66 to realise a SOAP-Server. Everything works fine. The only thing that s really
    Message 1 of 1 , Jan 23, 2006
    • 0 Attachment
      -----BEGIN PGP SIGNED MESSAGE-----
      Hash: SHA1

      Hello,
      I've got the following problem: I'm using SOAP::Lite 0.66 to realise a
      SOAP-Server. Everything works fine. The only thing that's really getting
      to me is multiple occurrences of elements.
      Example:
      Clientrequest
      <foo>
      <bar>123</bar>
      <bar>234</bar>
      <bar>333</bar>
      </foo>
      is deserialized to
      $response{'foo'}{'bar'}[0-2]
      perfect.

      But what must I do to produce the same xml-structure in my
      server-response. I tried to put an array in the hash but the result on
      the client was something like SOAP::Data(Hashx98).

      I'm really desperate. Anybody knows how to handle such a thing easily.
      Usually I use Hashes and return SOAP::Data->name('responseElement' =>
      \%response);
      in my Server sub and everything is serialized fine by SOAP::Lite.

      Any help is greatly appreciated.

      Bye,
      Phil

      PS: I did look at the example on how to encode arrays in SOAP:Lite:Data.
      But I'm either to dumb or it is not for my problem: I didn't get it
      running. And I would like to keep the Hashes. It is so simple ;)
      - --
      LINET Services GbR

      Gotenweg 15 Tel.: 0531-280 191 71
      38106 Braunschweig Fax.: 0531-280 191 72

      http://www.linet-services.de
      mailto:info@...
      -----BEGIN PGP SIGNATURE-----
      Version: GnuPG v1.2.4 (GNU/Linux)
      Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

      iD8DBQFD1Lr6Hf7qoDPJh6ERAqD9AJ98HwqaAFdNEmfOO8AiiSpfcEwBEQCffSkS
      IwAlcAyHtFFNjWw77UrbnFc=
      =Vk1K
      -----END PGP SIGNATURE-----
    Your message has been successfully submitted and would be delivered to recipients shortly.