471,618 Members | 1,077 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,618 software developers and data experts.

Hashtable Serialization problem in Webservice

Hi,

I 've a problem while creating a web method which returns a class object.

The actual implementaion of the class using a hashtable which is not
serialized by the webservice..

any pointers would be helpful in resolving my problem ...

thanx & regards

sajid
Dec 31 '05 #1
2 2177

"Sajid" <sa******@yahoo.com> wrote in message
news:uc**************@TK2MSFTNGP11.phx.gbl...
Hi,

I 've a problem while creating a web method which returns a class object.

The actual implementaion of the class using a hashtable which is not
serialized by the webservice..

any pointers would be helpful in resolving my problem ...

thanx & regards

sajid


The XmlSerializer can't serialize objects that implement IDictionary.
http://msdn.microsoft.com/msdnmag/is...s/default.aspx
explains why and describes a way around this limitation.

Willy.
Dec 31 '05 #2

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...

"Sajid" <sa******@yahoo.com> wrote in message
news:uc**************@TK2MSFTNGP11.phx.gbl...
Hi,

I 've a problem while creating a web method which returns a class object.

The actual implementaion of the class using a hashtable which is not
serialized by the webservice..

any pointers would be helpful in resolving my problem ...

thanx & regards

sajid


The XmlSerializer can't serialize objects that implement IDictionary.
http://msdn.microsoft.com/msdnmag/is...s/default.aspx
explains why and describes a way around this limitation.


I read the article, and while it does give a workaround, it doesn't explain
why except to say "that's how it is."
Dec 31 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Cederstrom | last post: by
1 post views Thread by francois | last post: by
5 posts views Thread by francois | last post: by
1 post views Thread by Raed Sawalha | last post: by
5 posts views Thread by Dick | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.