I’m creating a webservice for a customer in ASP.Net v3.5.
Currently, we have the an object similar to the following that gets returned by one of the webservice methods:
public class blah
{
public DateTime datetime;
public int someData;
}
Now, the customer has sent me the following request:
In your schema you have a single entry for a xsd:dateTime. Can you
split that into two fields one for date and the other for time. The
use of a xsd:date and xsd:time should be fine as the object types.
Obviously, I can alter the class as follows:
public class blah
{
public DateTime date;
public DateTime time;
public int someData;
}
But I assume that will actually produce two fields of “xsd:DateTime” and not one of each as he is requesting.
Please can you advise how I would achieve the results my customer is expecting?
This seems to be exactly what I’m looking for!