Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.webservices
Serializing a custom collection
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!
>.
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Serializing a custom collection
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password