0 Replies Latest reply on Nov 19, 2010 12:39 PM by me04015

    Problems with array of complex type returned from webservice

    me04015 Level 1

      Can anyone give me some pointers on this issue?

       

      The arrays are showing as the right length, but each object is null.

       

      example soap

       

      <?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:HNS="http://tempuri.org/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><HNS:ROClientID SOAP-ENV:mustUnderstand="0">test</HNS:ROClientID></SOAP-ENV:Header><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ro="http://tempuri.org/"><NS1:GetSimpleInventoryItemsResponse xmlns:NS1="urn:MTASLibrary-TSSServer"><Result href="#0"/></NS1:GetSimpleInventoryItemsResponse><ro:SimpleInventoryItemArray id="0" xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="ro:SimpleInventoryItem[4]"><SimpleInventoryItem href="#1"/><SimpleInventoryItem href="#2"/><SimpleInventoryItem href="#3"/><SimpleInventoryItem href="#4"/></ro:SimpleInventoryItemArray><ro:SimpleInventoryItem id="1" xsi:type="ro:SimpleInventoryItem"><AverageCost xsi:type="xsd:double">0</AverageCost><BarcodeSku xsi:type="xsd:string"></BarcodeSku><Category xsi:type="xsd:string">MISC</Category><Commited xsi:type="xsd:int">0</Commited><Cost xsi:type="xsd:double">0</Cost><Dealer xsi:type="xsd:double">3.99</Dealer><Defective xsi:type="xsd:int">0</Defective><Description xsi:type="xsd:string">CR2032 BATTERY</Description><ID xsi:type="xsd:string">072661585420165</ID><ItemClass xsi:type="xsd:string">MISC.</ItemClass><Jobber xsi:type="xsd:double">2.99</Jobber><List xsi:type="xsd:double">6.99</List><Location xsi:type="xsd:string"></Location><Make xsi:type="xsd:string">SONY</Make><Model xsi:type="xsd:string">CR2032</Model><OnHand xsi:type="xsd:int">0</OnHand><Online xsi:type="xsd:double">0</Online><OnOrder xsi:type="xsd:int">0</OnOrder><Retail xsi:type="xsd:double">6.99</Retail><System xsi:type="xsd:double">4.99</System></ro:SimpleInventoryItem><ro:SimpleInventoryItem id="2" xsi:type="ro:SimpleInventoryItem"><AverageCost xsi:type="xsd:double">175</AverageCost><BarcodeSku xsi:type="xsd:string">711719700401</BarcodeSku><Category xsi:type="xsd:string">MISC</Category><Commited xsi:type="xsd:int">0</Commited><Cost xsi:type="xsd:double">175</Cost><Dealer xsi:type="xsd:double">199.99</Dealer><Defective xsi:type="xsd:int">0</Defective><Description xsi:type="xsd:string">PLAYSTATION 2</Description><ID xsi:type="xsd:string">151150092921739</ID><ItemClass xsi:type="xsd:string">HOME</ItemClass><Jobber xsi:type="xsd:double">194.44</Jobber><List xsi:type="xsd:double">199.99</List><Location xsi:type="xsd:string"></Location><Make xsi:type="xsd:string">SONY</Make><Model xsi:type="xsd:string">PS2</Model><OnHand xsi:type="xsd:int">0</OnHand><Online xsi:type="xsd:double">0</Online><OnOrder xsi:type="xsd:int">0</OnOrder><Retail xsi:type="xsd:double">199.99</Retail><System xsi:type="xsd:double">199.99</System></ro:SimpleInventoryItem><ro:SimpleInventoryItem id="3" xsi:type="ro:SimpleInventoryItem"><AverageCost xsi:type="xsd:double">1.05</AverageCost><BarcodeSku xsi:type="xsd:string"></BarcodeSku><Category xsi:type="xsd:string">MISC</Category><Commited xsi:type="xsd:int">0</Commited><Cost xsi:type="xsd:double">0</Cost><Dealer xsi:type="xsd:double">3.99</Dealer><Defective xsi:type="xsd:int">0</Defective><Description xsi:type="xsd:string">CR2016 BATTERY</Description><ID xsi:type="xsd:string">188933194930354</ID><ItemClass xsi:type="xsd:string">MISC.</ItemClass><Jobber xsi:type="xsd:double">2.99</Jobber><List xsi:type="xsd:double">6.99</List><Location xsi:type="xsd:string"></Location><Make xsi:type="xsd:string">SONY</Make><Model xsi:type="xsd:string">CR2016</Model><OnHand xsi:type="xsd:int">0</OnHand><Online xsi:type="xsd:double">0</Online><OnOrder xsi:type="xsd:int">0</OnOrder><Retail xsi:type="xsd:double">6.99</Retail><System xsi:type="xsd:double">4.99</System></ro:SimpleInventoryItem><ro:SimpleInventoryItem id="4" xsi:type="ro:SimpleInventoryItem"><AverageCost xsi:type="xsd:double">50</AverageCost><BarcodeSku xsi:type="xsd:string"></BarcodeSku><Category xsi:type="xsd:string">MOBILE VIDEO</Category><Commited xsi:type="xsd:int">0</Commited><Cost xsi:type="xsd:double">50</Cost><Dealer xsi:type="xsd:double">62.5</Dealer><Defective xsi:type="xsd:int">0</Defective><Description xsi:type="xsd:string">Test Item</Description><ID xsi:type="xsd:string">407464845521531</ID><ItemClass xsi:type="xsd:string"></ItemClass><Jobber xsi:type="xsd:double">55</Jobber><List xsi:type="xsd:double">75</List><Location xsi:type="xsd:string"></Location><Make xsi:type="xsd:string">SONY</Make><Model xsi:type="xsd:string">S12345</Model><OnHand xsi:type="xsd:int">0</OnHand><Online xsi:type="xsd:double">0</Online><OnOrder xsi:type="xsd:int">0</OnOrder><Retail xsi:type="xsd:double">70</Retail><System xsi:type="xsd:double">67.5</System></ro:SimpleInventoryItem></SOAP-ENV:Body></SOAP-ENV:En velope>