General question

M

MamboJambo

I'm rather new to webservices but I have the following question.
Is the following possible:

I would like to keep a datastructure ( f.e a hashmap).
People could notify of their presence by sending their hostname to the
webservice, which has to put it in the datastructure. And I also want
to query the webservice which computers are connected ( the content of
the hashmap).
Is this possible through webservices?


Kind regards


Miguel
 
C

CESAR DE LA TORRE [MVP]

You can use many types of data using WebServices. Just keep in mind the
following:
Whatever you want to pass through it, it must be serializable with
XmlSerializer (namespace System.Xml.Serialization). Any basic type is
serializable (like string, int, etc.), as well as XML data structures,
DataSets and even DataTables now in .NET 2.0). This is because all thouse
data types implement IXmlSerializable. Beware of DataSets and DataTables if
you want interoperability with other platforms like JAVA.

About HashTables..., I'm afraid you cannot use it in an easy way, because
even though HashTable implements ISerializable, It does not implement
XmlSerializer, also, ASP.NET serialization process does not support objects
that
implement IDictionary, as HashTable does.
You could try with custom serialization (ie: XmlAttribute Override).
--
CESAR DE LA TORRE
Software Architect
[Microsoft MVP - XML Web Services]
[MCSE] [MCT]

Renacimiento
[Microsoft GOLD Certified Partner]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,828
Latest member
LauraCastr

Latest Threads

Top