You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

207 lines
8.6 KiB

  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 DefenseWeb.UDTWebService {
  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.6.1055.0")]
  23. [System.Diagnostics.DebuggerStepThroughAttribute()]
  24. [System.ComponentModel.DesignerCategoryAttribute("code")]
  25. [System.Web.Services.WebServiceBindingAttribute(Name="wsh_PO_ParserBinding", Namespace="http://www.informatica.com/")]
  26. public partial class wsh_PO_Parser : System.Web.Services.Protocols.SoapHttpClientProtocol {
  27. private System.Threading.SendOrPostCallback wsh_PO_ParserOperationOperationCompleted;
  28. private bool useDefaultCredentialsSetExplicitly;
  29. /// <remarks/>
  30. public wsh_PO_Parser() {
  31. this.Url = global::DefenseWeb.Properties.Settings.Default.DefenseWeb_UDTWebService_wsh_PO_Parser;
  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 wsh_PO_ParserOperationCompletedEventHandler wsh_PO_ParserOperationCompleted;
  64. /// <remarks/>
  65. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestElementName="WSH_PO_IORequest", RequestNamespace="http://www.informatica.com/wsdl/", ResponseElementName="WSH_PO_IOResponse", ResponseNamespace="http://www.informatica.com/wsdl/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  66. [return: System.Xml.Serialization.XmlElementAttribute("WSH_PO_IOResponseElement")]
  67. public WSH_PO_IOResponseTypeWSH_PO_IOResponseElement wsh_PO_ParserOperation(WSH_PO_IORequestTypeWSH_PO_IORequestElement WSH_PO_IORequestElement) {
  68. object[] results = this.Invoke("wsh_PO_ParserOperation", new object[] {
  69. WSH_PO_IORequestElement});
  70. return ((WSH_PO_IOResponseTypeWSH_PO_IOResponseElement)(results[0]));
  71. }
  72. /// <remarks/>
  73. public void wsh_PO_ParserOperationAsync(WSH_PO_IORequestTypeWSH_PO_IORequestElement WSH_PO_IORequestElement) {
  74. this.wsh_PO_ParserOperationAsync(WSH_PO_IORequestElement, null);
  75. }
  76. /// <remarks/>
  77. public void wsh_PO_ParserOperationAsync(WSH_PO_IORequestTypeWSH_PO_IORequestElement WSH_PO_IORequestElement, object userState) {
  78. if ((this.wsh_PO_ParserOperationOperationCompleted == null)) {
  79. this.wsh_PO_ParserOperationOperationCompleted = new System.Threading.SendOrPostCallback(this.Onwsh_PO_ParserOperationOperationCompleted);
  80. }
  81. this.InvokeAsync("wsh_PO_ParserOperation", new object[] {
  82. WSH_PO_IORequestElement}, this.wsh_PO_ParserOperationOperationCompleted, userState);
  83. }
  84. private void Onwsh_PO_ParserOperationOperationCompleted(object arg) {
  85. if ((this.wsh_PO_ParserOperationCompleted != null)) {
  86. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  87. this.wsh_PO_ParserOperationCompleted(this, new wsh_PO_ParserOperationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  88. }
  89. }
  90. /// <remarks/>
  91. public new void CancelAsync(object userState) {
  92. base.CancelAsync(userState);
  93. }
  94. private bool IsLocalFileSystemWebService(string url) {
  95. if (((url == null)
  96. || (url == string.Empty))) {
  97. return false;
  98. }
  99. System.Uri wsUri = new System.Uri(url);
  100. if (((wsUri.Port >= 1024)
  101. && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
  102. return true;
  103. }
  104. return false;
  105. }
  106. }
  107. /// <remarks/>
  108. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1055.0")]
  109. [System.SerializableAttribute()]
  110. [System.Diagnostics.DebuggerStepThroughAttribute()]
  111. [System.ComponentModel.DesignerCategoryAttribute("code")]
  112. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.informatica.com/wsdl/")]
  113. public partial class WSH_PO_IORequestTypeWSH_PO_IORequestElement {
  114. private string parser_NameField;
  115. private string file_NameField;
  116. /// <remarks/>
  117. [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
  118. public string Parser_Name {
  119. get {
  120. return this.parser_NameField;
  121. }
  122. set {
  123. this.parser_NameField = value;
  124. }
  125. }
  126. /// <remarks/>
  127. [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
  128. public string File_Name {
  129. get {
  130. return this.file_NameField;
  131. }
  132. set {
  133. this.file_NameField = value;
  134. }
  135. }
  136. }
  137. /// <remarks/>
  138. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1055.0")]
  139. [System.SerializableAttribute()]
  140. [System.Diagnostics.DebuggerStepThroughAttribute()]
  141. [System.ComponentModel.DesignerCategoryAttribute("code")]
  142. [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.informatica.com/wsdl/")]
  143. public partial class WSH_PO_IOResponseTypeWSH_PO_IOResponseElement {
  144. private string file_NameField;
  145. /// <remarks/>
  146. [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
  147. public string File_Name {
  148. get {
  149. return this.file_NameField;
  150. }
  151. set {
  152. this.file_NameField = value;
  153. }
  154. }
  155. }
  156. /// <remarks/>
  157. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1055.0")]
  158. public delegate void wsh_PO_ParserOperationCompletedEventHandler(object sender, wsh_PO_ParserOperationCompletedEventArgs e);
  159. /// <remarks/>
  160. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1055.0")]
  161. [System.Diagnostics.DebuggerStepThroughAttribute()]
  162. [System.ComponentModel.DesignerCategoryAttribute("code")]
  163. public partial class wsh_PO_ParserOperationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  164. private object[] results;
  165. internal wsh_PO_ParserOperationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  166. base(exception, cancelled, userState) {
  167. this.results = results;
  168. }
  169. /// <remarks/>
  170. public WSH_PO_IOResponseTypeWSH_PO_IOResponseElement Result {
  171. get {
  172. this.RaiseExceptionIfNecessary();
  173. return ((WSH_PO_IOResponseTypeWSH_PO_IOResponseElement)(this.results[0]));
  174. }
  175. }
  176. }
  177. }
  178. #pragma warning restore 1591