M
Michael_vb
It seems if i have a custom business object that inherits from an
arraylist, it will not serialize it correctly on the proxy side.Well my
issue is that i have a business object that has a member of
phonenumbers which inherits from arraylist. The reason is because i
could have more than one phone number. How can i get around this issue
on the proxy side, here is my code
Web service code
<WebMethod()> Public Function SaveCase(ByVal Myrequest As CaseRequest)
End Function
End Class
<System.Serializable()> Public Class CaseRequest
Public FirstName As String
Public LastName As String
Private _phone As PhoneNumbers
Public Property Phone() As PhoneNumbers
Get
Return _phone
End Get
Set(ByVal value As PhoneNumbers)
_phone = value
End Set
End Property
End Class
<System.Serializable()> Public Class PhoneNumbers
inherits arraylist
Public Type As String
Public Number As String
Public Sub New()
End Sub
End Class
On the client side there is no Phonenumbers class created,also the
member phone from the caserequest class is not an arraylist. Any
ideas!!
asp.net web service 2.0
arraylist, it will not serialize it correctly on the proxy side.Well my
issue is that i have a business object that has a member of
phonenumbers which inherits from arraylist. The reason is because i
could have more than one phone number. How can i get around this issue
on the proxy side, here is my code
Web service code
<WebMethod()> Public Function SaveCase(ByVal Myrequest As CaseRequest)
End Function
End Class
<System.Serializable()> Public Class CaseRequest
Public FirstName As String
Public LastName As String
Private _phone As PhoneNumbers
Public Property Phone() As PhoneNumbers
Get
Return _phone
End Get
Set(ByVal value As PhoneNumbers)
_phone = value
End Set
End Property
End Class
<System.Serializable()> Public Class PhoneNumbers
inherits arraylist
Public Type As String
Public Number As String
Public Sub New()
End Sub
End Class
On the client side there is no Phonenumbers class created,also the
member phone from the caserequest class is not an arraylist. Any
ideas!!
asp.net web service 2.0