SOAP/VB6 Reading Arrays
-
Hello All, I am hoping someone could steer me in the right direction with a problem I am having. I created a small app that sucessfully consumes a Web Service and traps the response. I am able to read individual pieces of the document but when it comes to arrays, I am having the most difficult time. Below I have posted the XML response and what I am looking to store is the values in ref1 and ref2. But I don't know how to get at them. I see a reference to these 2 elements in the SearchServiceNames and ServiceLastModificationDates tags but I am totally lost on how to read and hook the two up. Any help would be most appreciated. I thank you for your time and comments. <?xml version="1.0"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> SOAP-ENV:Body <ns1:GetSearchServicesResponse SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.dwdev.com/Webservices/Freezerworks/"> <SearchServicesCount>3</SearchServicesCount> <SearchServiceNames href="#ref-1"/> <SearchServiceLastModificationDates href="#ref-2"/> </ns1:GetSearchServicesResponse> <SOAP-ENC:Array SOAP-ENC:arrayType="xsd:string[3]" id="ref-1"> <item>GetIDs</item> <item>russtest</item> <item>russtestservice</item> </SOAP-ENC:Array> <SOAP-ENC:Array SOAP-ENC:arrayType="xsd:date[3]" id="ref-2"> <item>2009-11-17</item> <item>2009-11-16</item> <item>2009-11-16</item> </SOAP-ENC:Array></SOAP-ENV:Body> </SOAP-ENV:Envelope>