A colleagues come in and helped me. As I thought it was me being dumb. Simply changing the Public class topics.category to an ArrayList rather than an array and changed the read to:
CG.Category = New ArrayList
Do While (DR.Read())
'Temp.Add(DR.It em("name"))
CG.Category.Add (DR.Item("name" ))
Loop
Thanks very...
User Profile
Collapse
-
I do indeed mate. Thanks very much! The power of social networks eh?
As usual I wont have explained it very well. Please bear in mind I've not done any coding since being a student and even then it was only Pascal so I may have some fundamentals very wrong.
I've defined the XML object for the SOAP packet as Public class. One the XML elements that gets populated is called categories, of which there can be many so I set this...Leave a comment:
-
Reading Data to Public class from database to VB Webservice
Hi,
I've been pulling my hair out over a problem and I'm sure its my lack of experience and probably easily answered. I've done a lot of searching but I'm probably not clued up enough to know what I'm actually looking for.
I'm creating an XML web service, which is reading data from a MySQL database. I just cant seem to get the value from the database into Class for the xml - keep getting direct cast errors (which I dont...
No activity results to display
Show More
Leave a comment: