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

1268SOAP::Lite, GLUE, and Java Hash(table|Maps)

Expand Messages
  • James Felix Black
    Feb 28, 2002

      Briefly, I'm having trouble with the Java hash types; our environment
      is a Java server (GLUE 1.3) communicating with Java and Perl clients.
      One of the methods that we need to call returns a HashMap, which is
      then used as a parameter by a different method.

      By default, what I get back from the server is wrong, in that the perl
      object that is created contains just a single (key,value) pair. This
      object can be sent to the server, which correctly sees a hashmap of a
      single pair.

      I've written a dead-simple SOAP::Deserializer::as_hashmap method that
      converts the hashmap into a simple perl hashref, which works fine for
      receipt. However, sending this simple hash back to the server fails,
      as the server sees a null object.

      Is there a simple solution that I'm missing?

      "I can't stand this proliferation of paperwork. It's useless to fight
      the forms. You've got to kill the people producing them."
      -- Vladimir Kabaidze, Director, Ivanovo Machine Building Works