1)In traditional web service, can Hash table (IDictionary interface) can be serialized or de-serialized ?
Ans)
Select from following answers:- Yes
- No
 - Don't Know
No.
Traditional web service uses XmlSerializer class to serialize or de-serialize objects into/from xml.
Classes that implement the IDictionary interface, such as Hash table cannot be serialized or de-serialized.
By using WCF, DataContractSerializer can translate the HashTable into XML.
View Correct Answer |
------------------------------------------------------
2)In traditional web services, Only Public fields or Properties of .NET types can be translated into XML ?
True or false ?
Ans)
Select from following answers:- True
 - False
- Don't Know
True.
Traditional web services use XmlSerializer class to serialize and de-serialize objects into/from XML documents. Here, we can only serialize or de-serialize those fields or properties which are marked as public !
This drawback has been rectified by WCF !
View Correct Answer |