IWCFTest.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System.ServiceModel;
  2. using System.ServiceModel.Web;
  3. using Dongke.IBOSS.PRD.WCF.DataModels;
  4. namespace Dongke.IBOSS.PRD.WCF.Contracts
  5. {
  6. [ServiceContract(ConfigurationName = "WCFTestService.IWCFTest",
  7. Name = "IWCFTest",
  8. Namespace = "Dongke.IBOSS.PRD.WCF.Contracts")]
  9. public interface IWCFTest
  10. {
  11. [OperationContract]
  12. string GetOutPara1123(string code);
  13. [OperationContract]
  14. string GetOutPara(string code, out string name, ref WCFTestData data);
  15. [OperationContract]
  16. WCFTestData GetOutPara1234(WCFTestData data);
  17. [OperationContract]
  18. [WebInvoke(BodyStyle = WebMessageBodyStyle.Wrapped
  19. , ResponseFormat = WebMessageFormat.Json
  20. , RequestFormat = WebMessageFormat.Json)]
  21. WCFTestData GetJsonString(WCFTestData data);
  22. [OperationContract]
  23. [WebInvoke(BodyStyle = WebMessageBodyStyle.Wrapped
  24. , ResponseFormat = WebMessageFormat.Json
  25. , RequestFormat = WebMessageFormat.Json)]
  26. string GetJsonString1(WCFTestData data);
  27. }
  28. }