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

RE: [soaplite] how to serialize a hash into a Map

Expand Messages
  • Marc Logghe
    ... Aaaahhh, I was oh so close, but no cigar ... I did: return SOAP::Data- type(Map = {a = 1, b = 2, c = 3}); Thanks a lot !! Marc
    Message 1 of 3 , Jul 15, 2004
      > >It is problay very obvious, but I keep on overlooking it ;-)
      > >I tried with returning Soap::Serializer->as_map({a=> 1,
      > ...}, 'ref', undef, {})
      > >but the result did not really look like it :-( (guess the
      > server tried to serialize the retrun value into an array,
      > which looked terribly noisy in the envelope...
      > >Any help/pointers appreciated.
      >
      > return SOAP::Data->type(map => {a => 1, b => 2, c => 3});

      Aaaahhh, I was oh so close, but no cigar ...
      I did:
      return SOAP::Data->type(Map => {a => 1, b => 2, c => 3});

      Thanks a lot !!
      Marc
    Your message has been successfully submitted and would be delivered to recipients shortly.