Hi there,
I have a web service and its methods return a class which is name WSResult. WSResult has 2 properties. One of property's type is int and the other one's type is object. I want to return some different type with this second property. you can see my WSREult
[Serializable]
public class WSResult
{
public int M_Status { get; set; }
public object M_ResultObject { get; set; }
}
But when i want to return DataSet or another serializable object with M_ResultObject, i have an error. Error is :
System.Web.Services.Protocols.SoapException: Server was unable to process request.
---> System.InvalidOperationException:
There was an error generating the XML document.
---> System.InvalidOperationException:
The type System.Xml.Linq.XDocument was not expected.
Use the XmlInclude or SoapInclude attribute to specify types that are not
known statically
How can i pass an object which i retrieved from other web services or that i generated from my serializable classes inside M_ResultObject property ?
KR