Created
March 26, 2015 19:41
-
-
Save jennings/f4b367b8f8cc3ce7eabf to your computer and use it in GitHub Desktop.
Example service contract for http://stackoverflow.com/q/29132014/19818
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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