Skip to content

Instantly share code, notes, and snippets.

@vbilopav
Last active September 1, 2015 10:24
Show Gist options
  • Save vbilopav/35eb28c8431b8d7e39c0 to your computer and use it in GitHub Desktop.
Save vbilopav/35eb28c8431b8d7e39c0 to your computer and use it in GitHub Desktop.
[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