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

1751Re: [soaplite] Passing Hashtables from Perl (again)

Expand Messages
  • Duncan Cameron
    Aug 15, 2002
      On 2002-08-15 calinm wrote:
      >Hello,
      >
      >I read the previous posts from people trying to pass Hashtable
      >around. I wrote a method that takes nothing and returns a hashtable.
      >It serialises it like below, as an array of MapEntries. What would I
      >have to pass something like this from SOAP::Lite? I assume that java
      >expects it serialized the way it's sending it away..
      >
      ><result xsi:type="ns1:hashtable" enc:arrayType="ns1:mapEntr[3]">
      ><item xsi:type="ns1:mapEntry"><key
      >xsi:type="xsd:string">two</key><value
      >xsi:type="xsd:string">two</value></item><item xsi:type="
      >ns1:mapEntry"><key xsi:type="xsd:string">one</key><value
      >xsi:type="xsd:string">one</value></item><item
      >xsi:type="ns1:mapEntry"><key xsi:type="xsd:string">three</key
      >><value
      >xsi:type="xsd:string">boo</value></item></result></ans1:getHashtableRe
      >sponse></env:Body></env:Envelope>
      >
      >I am using the Sun Java WSDP.
      >
      It's not clear quite what you want to do. Send a SOAP message from
      SOAP::Lite containing a hash table which Java can handle?

      The previous posts should give you a handle on how to do that,
      see http://groups.yahoo.com/group/soaplite/message/1374 as an example.


      Regards,
      Duncan Cameron
    • Show all 4 messages in this topic