Advertisement
Guest User

MyService Generated Service Interface

a guest
Jul 2nd, 2015
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.80 KB | None | 0 0
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. //     This code was generated by a tool.
  4. //     Runtime Version:4.0.30319.34011
  5. //
  6. //     Changes to this file may cause incorrect behavior and will be lost if
  7. //     the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10.  
  11. using System;
  12. using System.ComponentModel;
  13. using System.Diagnostics;
  14. using System.Web.Services;
  15. using System.Web.Services.Protocols;
  16. using System.Xml.Serialization;
  17.  
  18. //
  19. // This source code was auto-generated by wsdl, Version=4.0.30319.33440.
  20. //
  21.  
  22.  
  23. /// <remarks/>
  24. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.33440")]
  25. [System.Web.Services.WebServiceBindingAttribute(Name="MyServiceSoap", Namespace="http://services.mysite.com/MyService")]
  26. [System.Xml.Serialization.XmlIncludeAttribute(typeof(Foo))]
  27. [System.Xml.Serialization.XmlIncludeAttribute(typeof(Bar))]
  28. public interface IMyServiceSoap {
  29.    
  30.     /// <remarks/>
  31.     [System.Web.Services.WebMethodAttribute()]
  32.     [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://services.mysite.com/MyService/MyMethod", RequestNamespace="http://services.mysite.com/MyService", ResponseNamespace="http://services.mysite.com/MyService", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  33.     ReturnMessage MyMethod();
  34. }
  35.  
  36. /// <remarks/>
  37. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.33440")]
  38. [System.SerializableAttribute()]
  39. [System.Diagnostics.DebuggerStepThroughAttribute()]
  40. [System.ComponentModel.DesignerCategoryAttribute("code")]
  41. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://services.mysite.com/MyService")]
  42. public partial class ReturnMessage {
  43.    
  44.     private ReturnStatus statusField;
  45.    
  46.     private object genericReturnField;
  47.    
  48.     /// <remarks/>
  49.     public ReturnStatus Status {
  50.         get {
  51.             return this.statusField;
  52.         }
  53.         set {
  54.             this.statusField = value;
  55.         }
  56.     }
  57.    
  58.     /// <remarks/>
  59.     public object GenericReturn {
  60.         get {
  61.             return this.genericReturnField;
  62.         }
  63.         set {
  64.             this.genericReturnField = value;
  65.         }
  66.     }
  67. }
  68.  
  69. /// <remarks/>
  70. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.33440")]
  71. [System.SerializableAttribute()]
  72. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://services.mysite.com/MyService")]
  73. public enum ReturnStatus {
  74.    
  75.     /// <remarks/>
  76.     OK,
  77.    
  78.     /// <remarks/>
  79.     ERROR,
  80. }
  81.  
  82. /// <remarks/>
  83. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.33440")]
  84. [System.SerializableAttribute()]
  85. [System.Diagnostics.DebuggerStepThroughAttribute()]
  86. [System.ComponentModel.DesignerCategoryAttribute("code")]
  87. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://services.mysite.com/MyService")]
  88. public partial class Foo {
  89.    
  90.     private string textField;
  91.    
  92.     /// <remarks/>
  93.     public string Text {
  94.         get {
  95.             return this.textField;
  96.         }
  97.         set {
  98.             this.textField = value;
  99.         }
  100.     }
  101. }
  102.  
  103. /// <remarks/>
  104. [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.33440")]
  105. [System.SerializableAttribute()]
  106. [System.Diagnostics.DebuggerStepThroughAttribute()]
  107. [System.ComponentModel.DesignerCategoryAttribute("code")]
  108. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://services.mysite.com/MyService")]
  109. public partial class Bar {
  110.    
  111.     private int numberField;
  112.    
  113.     /// <remarks/>
  114.     public int Number {
  115.         get {
  116.             return this.numberField;
  117.         }
  118.         set {
  119.             this.numberField = value;
  120.         }
  121.     }
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement