creating objects from xml file
[code]
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Reflection;
using System.Data;
using System.IO;
using System.Xml;
namespace Parser
{
/// <summary>
/// Summary description for Class1.
/// </summary>
public class Deserializer
{
public Deserializer()
{
//
// TODO: Add constructor logic here
//
}
public object GetRequestObject(Type serviceType, string
webMethodName)
{
string propertyName= null;
MethodInfo info = serviceType.GetMethod(webMethodName);
Type responseType = info.ReturnType;
ConstructorInfo requestConstructor =
responseType.GetConstructor(Type.EmptyTypes);
//Construct the request object
object requestObject = requestConstructor.Invoke(null);
object childObject=null;
PropertyInfo property = responseType.GetProperty(propertyName);
}
}
}
[/code]

