473,405 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 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 2214

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: psy000 | last post by:
Hi, I have a C# web service client that talks to a JAVA application sever. I use AXIS to generate the WSDL file, use wsdl.exe to generate proxy stub c# code. When I try to use c# client connect...
3
by: Cederstrom | last post by:
Hello group! :) I want to create a config/status object, that will contain a Hashtable. This object I would like to save through Serialization, but im having some trouble. My hashtable contain...
4
by: André Giesing | last post by:
Hello NG! I've got a short question: Is there a difference of the internal representation of a Hashtable between the Compact Framework and the normal Framework? I've got the suspicion,...
1
by: francois | last post by:
Hi, I have a webservice that I am using and I would like it to return an XML serialized version of an object. the class of the object is defined serializable as the following: public...
5
by: francois | last post by:
First of all I would to to apologize for resending this post again but I feel like my last post as been spoiled Here I go for my problem: Hi, I have a webservice that I am using and I would...
1
by: oDDskOOL | last post by:
I realized today that the Hashtable.Clone only produces a shallow copy... that makes me go mad that M$ doesn't even provide a deep copy ctor for the Hashtable class ! mighty tech ducks might...
1
by: Raed Sawalha | last post by:
we have already built Web Application,we did changes on in class in application so , we need to pass a Hashtable object to a webserivce, we're using XML Serialization , my problem in how to...
5
by: Dick | last post by:
Hello, I'm trying to serialize a class with a Hashtable within: ' Class code: Imports System.Collections Class clsOptions Public countID As Integer Public persons As New Hashtable End Class
4
by: WhiskyRomeo | last post by:
I am trying to implement a webservice that returns a HashTable as a result <WebMethod()> Public Function GetAppData() As Hashtable Dim List As New Hashtable 'omitted code Return List End...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.