[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Atrax _

1/17/2003 4:59:00 PM

I have this code :

Public Class Listing
Public Listing_No as Int32
End Class

Public Class Listings
Private m_listings as ArrayList
Public Sub Search
...
End Sub
End Class

and a webmethod to be called via SOAP. The problem is that nothing gets
serialized. How can I correct this ??

thanx

*** Sent via Developersdex http://www.develop... ***
Don't just participate in USENET...get rewarded for it!
2 Answers

omar awwad

1/18/2003 11:41:00 AM

0

you must rely on the attribute classes in the
system.xml.serialization name space to control the way
object are serilized.
>-----Original Message-----
>I have this code :
>
>Public Class Listing
> Public Listing_No as Int32
>End Class
>
>Public Class Listings
> Private m_listings as ArrayList
> Public Sub Search
> ...
> End Sub
>End Class
>
>and a webmethod to be called via SOAP. The problem is
that nothing gets
>serialized. How can I correct this ??
>
>thanx
>
>*** Sent via Developersdex http://www.develop...
***
>Don't just participate in USENET...get rewarded for it!
>.
>

Gary Henderson

1/20/2003 11:28:00 AM

0

This might seem a bit obvious, but are you using the
serializable attribute on the classes that you want to be
serialized?

<Serializable()> Public Class Listing
Public Listing_No as Int32
End Class

<Serializable()> Public Class Listings
Private m_listings as ArrayList
Public Sub Search
...
End Sub
End Class


Regards,
Gary.
>-----Original Message-----
>I have this code :
>
>Public Class Listing
> Public Listing_No as Int32
>End Class
>
>Public Class Listings
> Private m_listings as ArrayList
> Public Sub Search
> ...
> End Sub
>End Class
>
>and a webmethod to be called via SOAP. The problem is
that nothing gets
>serialized. How can I correct this ??
>
>thanx
>
>*** Sent via Developersdex http://www.develop...
***
>Don't just participate in USENET...get rewarded for it!
>.
>