Skip to content

Instantly share code, notes, and snippets.

@jennings
Created March 26, 2015 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jennings/f4b367b8f8cc3ce7eabf to your computer and use it in GitHub Desktop.
Save jennings/f4b367b8f8cc3ce7eabf to your computer and use it in GitHub Desktop.
Example service contract for http://stackoverflow.com/q/29132014/19818
[ServiceContract]
public interface IService2
{
[OperationContract]
void setSalesItems(setSalesItems obj);
[OperationContract]
void setSalesItemsV3(setSalesItemsV3 obj);
}
[DataContract(Namespace = "")]
public class setSalesItems
{
[DataMember]
public DateTime start { get; set; }
}
[DataContract(Namespace = "")]
public class setSalesItemsV3
{
[DataMember]
public SimpleDate start { get; set; }
}
[DataContract(Namespace = "")]
public class SimpleDate
{
[DataMember]
public int Month { get; set; }
[DataMember]
public int Year { get; set; }
[DataMember]
public int Day { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment