Reference.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  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.WeatherWebService {
  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. using System.Data;
  22. /// <remarks/>
  23. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  24. [System.Diagnostics.DebuggerStepThroughAttribute()]
  25. [System.ComponentModel.DesignerCategoryAttribute("code")]
  26. [System.Web.Services.WebServiceBindingAttribute(Name="WeatherWebServiceSoap", Namespace="http://WebXml.com.cn/")]
  27. public partial class WeatherWebService : System.Web.Services.Protocols.SoapHttpClientProtocol {
  28. private System.Threading.SendOrPostCallback getSupportCityOperationCompleted;
  29. private System.Threading.SendOrPostCallback getSupportProvinceOperationCompleted;
  30. private System.Threading.SendOrPostCallback getSupportDataSetOperationCompleted;
  31. private System.Threading.SendOrPostCallback getWeatherbyCityNameOperationCompleted;
  32. private System.Threading.SendOrPostCallback getWeatherbyCityNameProOperationCompleted;
  33. private bool useDefaultCredentialsSetExplicitly;
  34. /// <remarks/>
  35. public WeatherWebService() {
  36. this.Url = global::SIMDP.BLL.Properties.Settings.Default.SIMDP_BLL_WeatherWebService_WeatherWebService;
  37. if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
  38. this.UseDefaultCredentials = true;
  39. this.useDefaultCredentialsSetExplicitly = false;
  40. }
  41. else {
  42. this.useDefaultCredentialsSetExplicitly = true;
  43. }
  44. }
  45. public new string Url {
  46. get {
  47. return base.Url;
  48. }
  49. set {
  50. if ((((this.IsLocalFileSystemWebService(base.Url) == true)
  51. && (this.useDefaultCredentialsSetExplicitly == false))
  52. && (this.IsLocalFileSystemWebService(value) == false))) {
  53. base.UseDefaultCredentials = false;
  54. }
  55. base.Url = value;
  56. }
  57. }
  58. public new bool UseDefaultCredentials {
  59. get {
  60. return base.UseDefaultCredentials;
  61. }
  62. set {
  63. base.UseDefaultCredentials = value;
  64. this.useDefaultCredentialsSetExplicitly = true;
  65. }
  66. }
  67. /// <remarks/>
  68. public event getSupportCityCompletedEventHandler getSupportCityCompleted;
  69. /// <remarks/>
  70. public event getSupportProvinceCompletedEventHandler getSupportProvinceCompleted;
  71. /// <remarks/>
  72. public event getSupportDataSetCompletedEventHandler getSupportDataSetCompleted;
  73. /// <remarks/>
  74. public event getWeatherbyCityNameCompletedEventHandler getWeatherbyCityNameCompleted;
  75. /// <remarks/>
  76. public event getWeatherbyCityNameProCompletedEventHandler getWeatherbyCityNameProCompleted;
  77. /// <remarks/>
  78. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://WebXml.com.cn/getSupportCity", RequestNamespace="http://WebXml.com.cn/", ResponseNamespace="http://WebXml.com.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  79. public string[] getSupportCity(string byProvinceName) {
  80. object[] results = this.Invoke("getSupportCity", new object[] {
  81. byProvinceName});
  82. return ((string[])(results[0]));
  83. }
  84. /// <remarks/>
  85. public void getSupportCityAsync(string byProvinceName) {
  86. this.getSupportCityAsync(byProvinceName, null);
  87. }
  88. /// <remarks/>
  89. public void getSupportCityAsync(string byProvinceName, object userState) {
  90. if ((this.getSupportCityOperationCompleted == null)) {
  91. this.getSupportCityOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetSupportCityOperationCompleted);
  92. }
  93. this.InvokeAsync("getSupportCity", new object[] {
  94. byProvinceName}, this.getSupportCityOperationCompleted, userState);
  95. }
  96. private void OngetSupportCityOperationCompleted(object arg) {
  97. if ((this.getSupportCityCompleted != null)) {
  98. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  99. this.getSupportCityCompleted(this, new getSupportCityCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  100. }
  101. }
  102. /// <remarks/>
  103. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://WebXml.com.cn/getSupportProvince", RequestNamespace="http://WebXml.com.cn/", ResponseNamespace="http://WebXml.com.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  104. public string[] getSupportProvince() {
  105. object[] results = this.Invoke("getSupportProvince", new object[0]);
  106. return ((string[])(results[0]));
  107. }
  108. /// <remarks/>
  109. public void getSupportProvinceAsync() {
  110. this.getSupportProvinceAsync(null);
  111. }
  112. /// <remarks/>
  113. public void getSupportProvinceAsync(object userState) {
  114. if ((this.getSupportProvinceOperationCompleted == null)) {
  115. this.getSupportProvinceOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetSupportProvinceOperationCompleted);
  116. }
  117. this.InvokeAsync("getSupportProvince", new object[0], this.getSupportProvinceOperationCompleted, userState);
  118. }
  119. private void OngetSupportProvinceOperationCompleted(object arg) {
  120. if ((this.getSupportProvinceCompleted != null)) {
  121. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  122. this.getSupportProvinceCompleted(this, new getSupportProvinceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  123. }
  124. }
  125. /// <remarks/>
  126. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://WebXml.com.cn/getSupportDataSet", RequestNamespace="http://WebXml.com.cn/", ResponseNamespace="http://WebXml.com.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  127. public System.Data.DataSet getSupportDataSet() {
  128. object[] results = this.Invoke("getSupportDataSet", new object[0]);
  129. return ((System.Data.DataSet)(results[0]));
  130. }
  131. /// <remarks/>
  132. public void getSupportDataSetAsync() {
  133. this.getSupportDataSetAsync(null);
  134. }
  135. /// <remarks/>
  136. public void getSupportDataSetAsync(object userState) {
  137. if ((this.getSupportDataSetOperationCompleted == null)) {
  138. this.getSupportDataSetOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetSupportDataSetOperationCompleted);
  139. }
  140. this.InvokeAsync("getSupportDataSet", new object[0], this.getSupportDataSetOperationCompleted, userState);
  141. }
  142. private void OngetSupportDataSetOperationCompleted(object arg) {
  143. if ((this.getSupportDataSetCompleted != null)) {
  144. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  145. this.getSupportDataSetCompleted(this, new getSupportDataSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  146. }
  147. }
  148. /// <remarks/>
  149. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://WebXml.com.cn/getWeatherbyCityName", RequestNamespace="http://WebXml.com.cn/", ResponseNamespace="http://WebXml.com.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  150. public string[] getWeatherbyCityName(string theCityName) {
  151. object[] results = this.Invoke("getWeatherbyCityName", new object[] {
  152. theCityName});
  153. return ((string[])(results[0]));
  154. }
  155. /// <remarks/>
  156. public void getWeatherbyCityNameAsync(string theCityName) {
  157. this.getWeatherbyCityNameAsync(theCityName, null);
  158. }
  159. /// <remarks/>
  160. public void getWeatherbyCityNameAsync(string theCityName, object userState) {
  161. if ((this.getWeatherbyCityNameOperationCompleted == null)) {
  162. this.getWeatherbyCityNameOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetWeatherbyCityNameOperationCompleted);
  163. }
  164. this.InvokeAsync("getWeatherbyCityName", new object[] {
  165. theCityName}, this.getWeatherbyCityNameOperationCompleted, userState);
  166. }
  167. private void OngetWeatherbyCityNameOperationCompleted(object arg) {
  168. if ((this.getWeatherbyCityNameCompleted != null)) {
  169. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  170. this.getWeatherbyCityNameCompleted(this, new getWeatherbyCityNameCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  171. }
  172. }
  173. /// <remarks/>
  174. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://WebXml.com.cn/getWeatherbyCityNamePro", RequestNamespace="http://WebXml.com.cn/", ResponseNamespace="http://WebXml.com.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  175. public string[] getWeatherbyCityNamePro(string theCityName, string theUserID) {
  176. object[] results = this.Invoke("getWeatherbyCityNamePro", new object[] {
  177. theCityName,
  178. theUserID});
  179. return ((string[])(results[0]));
  180. }
  181. /// <remarks/>
  182. public void getWeatherbyCityNameProAsync(string theCityName, string theUserID) {
  183. this.getWeatherbyCityNameProAsync(theCityName, theUserID, null);
  184. }
  185. /// <remarks/>
  186. public void getWeatherbyCityNameProAsync(string theCityName, string theUserID, object userState) {
  187. if ((this.getWeatherbyCityNameProOperationCompleted == null)) {
  188. this.getWeatherbyCityNameProOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetWeatherbyCityNameProOperationCompleted);
  189. }
  190. this.InvokeAsync("getWeatherbyCityNamePro", new object[] {
  191. theCityName,
  192. theUserID}, this.getWeatherbyCityNameProOperationCompleted, userState);
  193. }
  194. private void OngetWeatherbyCityNameProOperationCompleted(object arg) {
  195. if ((this.getWeatherbyCityNameProCompleted != null)) {
  196. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  197. this.getWeatherbyCityNameProCompleted(this, new getWeatherbyCityNameProCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  198. }
  199. }
  200. /// <remarks/>
  201. public new void CancelAsync(object userState) {
  202. base.CancelAsync(userState);
  203. }
  204. private bool IsLocalFileSystemWebService(string url) {
  205. if (((url == null)
  206. || (url == string.Empty))) {
  207. return false;
  208. }
  209. System.Uri wsUri = new System.Uri(url);
  210. if (((wsUri.Port >= 1024)
  211. && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
  212. return true;
  213. }
  214. return false;
  215. }
  216. }
  217. /// <remarks/>
  218. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  219. public delegate void getSupportCityCompletedEventHandler(object sender, getSupportCityCompletedEventArgs e);
  220. /// <remarks/>
  221. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  222. [System.Diagnostics.DebuggerStepThroughAttribute()]
  223. [System.ComponentModel.DesignerCategoryAttribute("code")]
  224. public partial class getSupportCityCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  225. private object[] results;
  226. internal getSupportCityCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  227. base(exception, cancelled, userState) {
  228. this.results = results;
  229. }
  230. /// <remarks/>
  231. public string[] Result {
  232. get {
  233. this.RaiseExceptionIfNecessary();
  234. return ((string[])(this.results[0]));
  235. }
  236. }
  237. }
  238. /// <remarks/>
  239. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  240. public delegate void getSupportProvinceCompletedEventHandler(object sender, getSupportProvinceCompletedEventArgs e);
  241. /// <remarks/>
  242. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  243. [System.Diagnostics.DebuggerStepThroughAttribute()]
  244. [System.ComponentModel.DesignerCategoryAttribute("code")]
  245. public partial class getSupportProvinceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  246. private object[] results;
  247. internal getSupportProvinceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  248. base(exception, cancelled, userState) {
  249. this.results = results;
  250. }
  251. /// <remarks/>
  252. public string[] Result {
  253. get {
  254. this.RaiseExceptionIfNecessary();
  255. return ((string[])(this.results[0]));
  256. }
  257. }
  258. }
  259. /// <remarks/>
  260. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  261. public delegate void getSupportDataSetCompletedEventHandler(object sender, getSupportDataSetCompletedEventArgs e);
  262. /// <remarks/>
  263. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  264. [System.Diagnostics.DebuggerStepThroughAttribute()]
  265. [System.ComponentModel.DesignerCategoryAttribute("code")]
  266. public partial class getSupportDataSetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  267. private object[] results;
  268. internal getSupportDataSetCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  269. base(exception, cancelled, userState) {
  270. this.results = results;
  271. }
  272. /// <remarks/>
  273. public System.Data.DataSet Result {
  274. get {
  275. this.RaiseExceptionIfNecessary();
  276. return ((System.Data.DataSet)(this.results[0]));
  277. }
  278. }
  279. }
  280. /// <remarks/>
  281. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  282. public delegate void getWeatherbyCityNameCompletedEventHandler(object sender, getWeatherbyCityNameCompletedEventArgs e);
  283. /// <remarks/>
  284. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  285. [System.Diagnostics.DebuggerStepThroughAttribute()]
  286. [System.ComponentModel.DesignerCategoryAttribute("code")]
  287. public partial class getWeatherbyCityNameCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  288. private object[] results;
  289. internal getWeatherbyCityNameCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  290. base(exception, cancelled, userState) {
  291. this.results = results;
  292. }
  293. /// <remarks/>
  294. public string[] Result {
  295. get {
  296. this.RaiseExceptionIfNecessary();
  297. return ((string[])(this.results[0]));
  298. }
  299. }
  300. }
  301. /// <remarks/>
  302. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  303. public delegate void getWeatherbyCityNameProCompletedEventHandler(object sender, getWeatherbyCityNameProCompletedEventArgs e);
  304. /// <remarks/>
  305. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")]
  306. [System.Diagnostics.DebuggerStepThroughAttribute()]
  307. [System.ComponentModel.DesignerCategoryAttribute("code")]
  308. public partial class getWeatherbyCityNameProCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  309. private object[] results;
  310. internal getWeatherbyCityNameProCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  311. base(exception, cancelled, userState) {
  312. this.results = results;
  313. }
  314. /// <remarks/>
  315. public string[] Result {
  316. get {
  317. this.RaiseExceptionIfNecessary();
  318. return ((string[])(this.results[0]));
  319. }
  320. }
  321. }
  322. }
  323. #pragma warning restore 1591