css,
Your concern is valid. We need to be cautious while passing custom
collections back and forth between the webservices. We can pass the Basic
Types and the even Custom Objects back and forth between webservice.
CustomCollections are not transmitted directly as as a CustomCollection
across the wire. Let's say you have the EmployeeCollection
(hastable/ArrayList), this would not be transmitted directly as
EmployeeCollection across the wire.
Rather this would be transmitted as the arry of Employee objects across the
wire.
In such case your SOAP Message size also get's increases.
Passing CustomCollections may have slight impact on the
performance. Please decide whether to really to PassCustomCollections
--
Thanks & Regards,
Mark Nelson
"css" wrote:
I am new to ASP.net webservice and have a quesiton.
Is is possible to pass custom object to a web service (using VB 2005)? My
custom object will look like this
Public Class Myclass
Public Property1 As String
Public Property2 As Integer
Public Property myCollection1 As Arraylist (Actually, it will be a strongly
type collection)
Public Property MyCollection2 AS Arraylist (Another strongly type collection)
End Class
My concern is more towards my object is having custom collection as its
public property. Thanks in advance