Re: [soaplite] Question: Controlling XML generation for result - deserialization
- At 21:03:51 on 2004-03-17 dcaffey_fl <dcaffey_fl@...> wrote:
>Thanks in advance to anyone that can answer this question:Yes, that's right.
>Assume use of the OO interface.
>How do I control deserialization of a SOAP response into the
> $soap->call(...)->result? I'd like to avoid having to override
>the deserializer and am hoping there's a property that I can set
>tells the serializer to use arrays/lists instead of hashes in the
>case of duplicate keys in a response hash. The problem I'm having
>that the XML nodes are coming back with the same names, which is
>legal, and as SOAP::Lite deserializes and stuffs the data into a
>hash, the keys are the same and the values in the hash get
>overwritten and I end with values only for the last XML node that
> I would have expected SOAP::Lite to use an array/listSOAP::Lite doesn't do that.
>and stuff a ref to the list into the hash ie the hash key would
>correspond to a ref to an array/list.
> I used the ptkdb debugger toYou need to iterate throught the SOM that is returned from call()
>poke around in the SOAP::Lite object and found the missing data but
>as I mentioned above it's not making it into the $soap->call(...)-
>>result. I'm using XML::Simple's XMLout to generate the final XML
>but the XML is incorrect because the "$soap->call(...)->result"
>I'm passing to it is incorrect to begin with because of the way the
>response to the soap call is being deserialized to begin with.
See previous answers to this kind of question by searching the
group archives for 'duplicate ', in particular this answer and the rest
of its thread