Highlighted

SOAP message deserialization failed

Avatar

Guest

08-10-2008

folowing SOAP sesponse is deserialized right to result object as array with two records.<br /><br />result = [{...},{...}] <br /> <br /><ns1:dopravci><br /> <ns1:typ_osoby>P</ns1:typ_osoby> <br /> <ns1:ico>00005886</ns1:ico> <br /> <ns1:popis></ns1:popis> <br /></ns1:dopravci><br /><ns1:dopravci><br /> <ns1:typ_osoby>F</ns1:typ_osoby> <br /> <ns1:ico>12582859</ns1:ico> <br /> <ns1:popis></ns1:popis> <br /></ns1:dopravci><br /><br />but next one ( > end of this topic) is deserialized wrong and result object contains just one record of tag <ns:voz_radky> from two records in SOAP response. I expect result object after deserialization like this:<br /><br />result = {<br /> vozidla{<br /> bla,bla,bla,<br /> [{...},{...}] <br /> }<br /> }<br /><br />but I get :<br /><br />result = {<br /> vozidla{<br /> bla,bla,bla,<br /> {...} <-- here is the problem <br /> }<br /> }<br /><br />What I'm, doing wrong? <br /><br /><ns:vozidla xmlns:ns="http://ip.gov.i.cz/xsd/EUL"><br /> <ns:voz_celkem>0</ns:voz_celkem><br /> <ns:voz_euro_bus>0</ns:voz_euro_bus><br /> <ns:voz_euro_nakl>0</ns:voz_euro_nakl><br /> <ns:voz_radky><br /> <ns:voz_1_s02>1A2 9999</ns:voz_1_s02><br /> <ns:voz_1_s03>MAN 690 Turbo</ns:voz_1_s03><br /> <ns:voz_1_s04>2005</ns:voz_1_s04><br /> <ns:voz_1_s05>N1</ns:voz_1_s05><br /> <ns:voz_1_s06>20.5</ns:voz_1_s06><br /> <ns:voz_1_s07>3</ns:voz_1_s07><br /> <ns:voz_1_s09>Pronajem</ns:voz_1_s09><br /> </ns:voz_radky><br /> <ns:voz_radky><br /> <ns:voz_1_zmeny>N</ns:voz_1_zmeny><br /> <ns:voz_1_s02>1A2 2222</ns:voz_1_s02><br /> <ns:voz_1_s03>Mercedes FH90</ns:voz_1_s03><br /> <ns:voz_1_s04>2003</ns:voz_1_s04><br /> <ns:voz_1_s05>N1</ns:voz_1_s05><br /> <ns:voz_1_s06>22</ns:voz_1_s06><br /> <ns:voz_1_s07>2</ns:voz_1_s07><br /> </ns:voz_radky><br /></ns:vozidla>