Hello again
I have a question which is supposed to be simple but I can't seem to get it right
I have a web service (vb.net using visual studio 2005) with a method named getinfo(). I also created a class (Person) that has three attributes (fName, lName and DOB).
Now, the method getinfo() is used to retrieve data from a database and it returns the class Person. When I run the web service from the browser and invoke the getinfo() method, it correctly displays the returned data (e.g. fNAme, lName, DOB).
However, I can't get the data in my client application (visual studio 2005). Normally, if a method returns String, we can write
. But because the method in this case returns an object, the client cannot understand how to use this returned data. I tried to -
add a reference to the client application by adding the original Person class and then declare a variable of that class type, created a similar class with the same attributes on the client side but nothing seems to work.
Can anyone help me on this please? This is getting really annoying now
N.B. Please feel free to ask questions if my problem description is not good enough!
I have a question which is supposed to be simple but I can't seem to get it right
I have a web service (vb.net using visual studio 2005) with a method named getinfo(). I also created a class (Person) that has three attributes (fName, lName and DOB).
Now, the method getinfo() is used to retrieve data from a database and it returns the class Person. When I run the web service from the browser and invoke the getinfo() method, it correctly displays the returned data (e.g. fNAme, lName, DOB).
However, I can't get the data in my client application (visual studio 2005). Normally, if a method returns String, we can write
VB.NET:
Dim str As String = webService.getinfo()
add a reference to the client application by adding the original Person class and then declare a variable of that class type, created a similar class with the same attributes on the client side but nothing seems to work.
Can anyone help me on this please? This is getting really annoying now
N.B. Please feel free to ask questions if my problem description is not good enough!