Last active
September 1, 2015 10:24
-
-
Save vbilopav/35eb28c8431b8d7e39c0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[DataContract] | |
public class Result | |
{ | |
[DataMember] | |
public bool Success { get; set; } | |
} | |
[DataContract] | |
public class SomeWorkParams | |
{ | |
[DataMember] | |
public int Param1 { get; set; } | |
[DataMember] | |
public string Param2 { get; set; } | |
} | |
[ServiceContract] | |
public interface IMyServiceSample | |
{ | |
[OperationContract] //soap xml | |
[WebGet(ResponseFormat = WebMessageFormat.Json)] //json | |
Result DoSomeWork(SomeWorkParams request); | |
// … |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment