Question : webservice: problem with enumerated element in xsd class vb.net vs2005

the xsd:
 
   
     
       
       
         
           
             
             
             
             
             
             
           

         

       

     

   

 



the xml

  nse>
    nseItem>
       stringts_incident_id>
       strings_message_id>
       string    
       string>
       string>
       stringon>    
    onseItem>  
    nseItem>
       stringts_incident_id>
       strings_message_id>
       string    
       string>
       string>
       stringon>    
    onseItem>  
  onse>



my problem:

I can't reference IndividualUpdateListResponseItem through IndividualUpdateListResponse
I can 't reference qts_incident_id through IndividualUpdateListResponseItem


I would expect to be able to reference
response.IndividualUpdateListResponse.IndividualUpdateListResponseItem.qts_incident_id


I can't get to elements under IndividualUpdateListResponseItem ...?
the xsd.exe (vs2005)  built IndividualUpdateListResponseIndividualUpdateListResponseItem but I don't understand how to use it?
do I somehow add IndividualUpdateListResponseIndividualUpdateListResponseItem to IndividualUpdateListResponse myself?

I've attached the XSD classes and the build/bind from my dataClass

I need to build the response and build the itemListing by iterating through a datareader.
the dr returns 0 or more rows, 1 IndividualUpdateListResponseItem is built for each row ...

Answer : webservice: problem with enumerated element in xsd class vb.net vs2005

If you have a While loop, and you need to increase the size of the array each time through the loop, then you need to use Redim Preserve instead of just Redim, or you will lose the contents of the array.
Random Solutions  
 
programming4us programming4us