M
Milsnips
hi there,
i have a webservice which my function calls a database( eg. customer table),
what i have is my own Customer class, and i want to return an array of my
"Customer" objects.
here is my code i use (c.GetList returns an arraylist of customer objects
from the database:
<WebMethod()> _
Function GetClientList() As <XmlElement(GetType(getAway.Client))> ArrayList
Dim c As New getAway.Client
Dim a As ArrayList = c.GetList(False)
Return a
End Function
i still get the same error below:
System.InvalidOperationException: There was an error generating the XML
document. ---> System.InvalidOperationException: The type getAway.Client was
not expected. Use the XmlInclude or SoapInclude attribute to specify types
that are not known statically.
any help appreciated...
Paul.
i have a webservice which my function calls a database( eg. customer table),
what i have is my own Customer class, and i want to return an array of my
"Customer" objects.
here is my code i use (c.GetList returns an arraylist of customer objects
from the database:
<WebMethod()> _
Function GetClientList() As <XmlElement(GetType(getAway.Client))> ArrayList
Dim c As New getAway.Client
Dim a As ArrayList = c.GetList(False)
Return a
End Function
i still get the same error below:
System.InvalidOperationException: There was an error generating the XML
document. ---> System.InvalidOperationException: The type getAway.Client was
not expected. Use the XmlInclude or SoapInclude attribute to specify types
that are not known statically.
any help appreciated...
Paul.