I have generated proxy from the wsdl file and it generated this way.
System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, **DataType = "time"**, Order = 8)]
public System.DateTime startTime
{
get
{
return this.myTimeField;
}
set
{
this.myTimeField= value;
}
}
See the DataType = "time" here
public partial class MyList
{
private string xfiels;
private System.DateTime MyTimeField;
}
Here the MYTimeField is DateTime field and the datatype field is specified as DataType = "time".
The problem I am facing is that the service expects dates to be formatted as hh:mm:ss and the XSD generated code seems to produce only YYYY-MM-DD hh:mm:ss.
When i modify proxy class datatype to string i am recieving response from the service.
Can i Force Xml.Serializer to serialize DateTime as 'hh:mm:ss' so that i dont want to modify the generated code