Fast and Furious - Trailer: Remix

Wednesday, December 27, 2006

.Net Web Services: Rules Governing Objects that can be Serialized to XML

Following are the considerations that should be kept in mind while designing data classes that need to be used as parameters or return type of Web Method(s) in .Net Web Service(s), so that the concerned Web Service(s) can be consumed by any client:-

1. Only classes with a public, default constructor will be serialized to XML: This means that .Net will not recognize an object to be serialized to XML at all, if it doesn't have a parameterless default constructor i.e. either the class should have no explicit constructor at all; or, if it does have an explicit constructor then it should also have an explicit parameterless public constructor

  • /*This is not a public default constructor, we also have to
    provide a public parameterless explicit constructor for this
    class to be serialized to XML, if we provide a parameterized
    constructor as below, assuming class name is Employee*/

    public Employee(string Name)
    {
    EmpName = Name;
    }
  • /*This is a public default constructor, that needs to be
    provided in a class, if we provide a parameterized constructor
    as above; for it to be serialized, assuming class name is Employee*/
    public Employee()
    {
    }

2. Only public fields and public properties will be serialized to XML
3. Read-only fields and read-only properties will not be serialized to XML
4. Methods and other type information associated with the class will not be serialized


Ref: .Net Web Services, Keith Ballinger

Tuesday, December 26, 2006

Happy New James Bond Year (2--007)

Hi All (Bond hi Bond),

First of all, wish you a Merry Christmas and a Very Happy and Prosperous New Year 2007.
As the figure of this year suggest that this might be a James Bond Year (...007). So, lets take some James Bond resolutions to start and spend this hopefully fun-filled year:
  • Let this be an year with full of James Bond movies to see
  • Let this be an year bonded with love, happiness, joy and wishes come true
  • Let this be an year with full of James Bond rides on his greatest Cars and Bikes
  • Let this be an year to flirt with Girls (-;) well not exactly :-)
  • Let this be an year to chase like James Bond did
  • Let this be an year to work like James bond
  • Let this be an year to drink and vine like James Bond ;0 oooh really
  • Lastly, let this be an year which never dies and is filled with funs and runs as Tomorrow Never dies, and may the James Bond movies never dies
A James Bond salute to all the blog lovers....................VJSS

Friday, December 15, 2006

:*)American Christmas?Indian Diwali:Pakistani IId(*:

Well, Which one is the most celebrated?, only time (n GOD) knows that.

Let us pray to the GOD this Christmas; for everything happens for GOOD in this world.

For computer professionals the question (?) will be replaced by the condtional operator right after this Christmas...

(.)--*--(.)

(Replaced on 26-Dec-2006)::VJSS::