Reference.cs 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // 此代码由工具生成。
  4. // 运行时版本:4.0.30319.42000
  5. //
  6. // 对此文件的更改可能会导致不正确的行为,并且如果
  7. // 重新生成代码,这些更改将会丢失。
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. //
  11. // 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
  12. //
  13. #pragma warning disable 1591
  14. namespace SIMDP.BLL.AS400FetchWebService {
  15. using System;
  16. using System.Web.Services;
  17. using System.Diagnostics;
  18. using System.Web.Services.Protocols;
  19. using System.Xml.Serialization;
  20. using System.ComponentModel;
  21. /// <remarks/>
  22. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  23. [System.Diagnostics.DebuggerStepThroughAttribute()]
  24. [System.ComponentModel.DesignerCategoryAttribute("code")]
  25. [System.Web.Services.WebServiceBindingAttribute(Name="GETMAINRServicesPortBinding", Namespace="http://getmainr.wsbeans.iseries/")]
  26. public partial class GETMAINR : System.Web.Services.Protocols.SoapHttpClientProtocol {
  27. private System.Threading.SendOrPostCallback mainOperationCompleted;
  28. private bool useDefaultCredentialsSetExplicitly;
  29. /// <remarks/>
  30. public GETMAINR() {
  31. this.Url = global::SIMDP.BLL.Properties.Settings.Default.SIMDP_BLL_AS400FetchWebServiec_GETMAINR;
  32. if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
  33. this.UseDefaultCredentials = true;
  34. this.useDefaultCredentialsSetExplicitly = false;
  35. }
  36. else {
  37. this.useDefaultCredentialsSetExplicitly = true;
  38. }
  39. }
  40. public new string Url {
  41. get {
  42. return base.Url;
  43. }
  44. set {
  45. if ((((this.IsLocalFileSystemWebService(base.Url) == true)
  46. && (this.useDefaultCredentialsSetExplicitly == false))
  47. && (this.IsLocalFileSystemWebService(value) == false))) {
  48. base.UseDefaultCredentials = false;
  49. }
  50. base.Url = value;
  51. }
  52. }
  53. public new bool UseDefaultCredentials {
  54. get {
  55. return base.UseDefaultCredentials;
  56. }
  57. set {
  58. base.UseDefaultCredentials = value;
  59. this.useDefaultCredentialsSetExplicitly = true;
  60. }
  61. }
  62. /// <remarks/>
  63. public event mainCompletedEventHandler mainCompleted;
  64. /// <remarks/>
  65. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:main", RequestNamespace="http://getmainr.wsbeans.iseries/", ResponseNamespace="http://getmainr.wsbeans.iseries/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  66. [return: System.Xml.Serialization.XmlArrayAttribute("return", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  67. [return: System.Xml.Serialization.XmlArrayItemAttribute("PI_LIST", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
  68. public string[] main([System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] mainInput arg0) {
  69. object[] results = this.Invoke("main", new object[] {
  70. arg0});
  71. return ((string[])(results[0]));
  72. }
  73. /// <remarks/>
  74. public void mainAsync(mainInput arg0) {
  75. this.mainAsync(arg0, null);
  76. }
  77. /// <remarks/>
  78. public void mainAsync(mainInput arg0, object userState) {
  79. if ((this.mainOperationCompleted == null)) {
  80. this.mainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnmainOperationCompleted);
  81. }
  82. this.InvokeAsync("main", new object[] {
  83. arg0}, this.mainOperationCompleted, userState);
  84. }
  85. private void OnmainOperationCompleted(object arg) {
  86. if ((this.mainCompleted != null)) {
  87. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  88. this.mainCompleted(this, new mainCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  89. }
  90. }
  91. /// <remarks/>
  92. public new void CancelAsync(object userState) {
  93. base.CancelAsync(userState);
  94. }
  95. private bool IsLocalFileSystemWebService(string url) {
  96. if (((url == null)
  97. || (url == string.Empty))) {
  98. return false;
  99. }
  100. System.Uri wsUri = new System.Uri(url);
  101. if (((wsUri.Port >= 1024)
  102. && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
  103. return true;
  104. }
  105. return false;
  106. }
  107. }
  108. /// <remarks/>
  109. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")]
  110. [System.SerializableAttribute()]
  111. [System.Diagnostics.DebuggerStepThroughAttribute()]
  112. [System.ComponentModel.DesignerCategoryAttribute("code")]
  113. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://getmainr.wsbeans.iseries/")]
  114. public partial class mainInput {
  115. private string pI_LINEField;
  116. private string pI_TYPEField;
  117. private string pI_NOField;
  118. /// <remarks/>
  119. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  120. public string PI_LINE {
  121. get {
  122. return this.pI_LINEField;
  123. }
  124. set {
  125. this.pI_LINEField = value;
  126. }
  127. }
  128. /// <remarks/>
  129. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  130. public string PI_TYPE {
  131. get {
  132. return this.pI_TYPEField;
  133. }
  134. set {
  135. this.pI_TYPEField = value;
  136. }
  137. }
  138. /// <remarks/>
  139. [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
  140. public string PI_NO {
  141. get {
  142. return this.pI_NOField;
  143. }
  144. set {
  145. this.pI_NOField = value;
  146. }
  147. }
  148. }
  149. /// <remarks/>
  150. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  151. public delegate void mainCompletedEventHandler(object sender, mainCompletedEventArgs e);
  152. /// <remarks/>
  153. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  154. [System.Diagnostics.DebuggerStepThroughAttribute()]
  155. [System.ComponentModel.DesignerCategoryAttribute("code")]
  156. public partial class mainCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  157. private object[] results;
  158. internal mainCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  159. base(exception, cancelled, userState) {
  160. this.results = results;
  161. }
  162. /// <remarks/>
  163. public string[] Result {
  164. get {
  165. this.RaiseExceptionIfNecessary();
  166. return ((string[])(this.results[0]));
  167. }
  168. }
  169. }
  170. }
  171. #pragma warning restore 1591