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.
222 lines
9.4 KiB
222 lines
9.4 KiB
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// 此代码由工具生成。
|
|
// 运行时版本:4.0.30319.1026
|
|
//
|
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
|
// 重新生成代码,这些更改将会丢失。
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
//
|
|
// 此源代码是由 Microsoft.VSDesigner 4.0.30319.1026 版自动生成。
|
|
//
|
|
#pragma warning disable 1591
|
|
|
|
namespace Stone.DataService.Biz.PDAService {
|
|
using System;
|
|
using System.Web.Services;
|
|
using System.Diagnostics;
|
|
using System.Web.Services.Protocols;
|
|
using System.ComponentModel;
|
|
using System.Xml.Serialization;
|
|
using System.Data;
|
|
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
[System.Web.Services.WebServiceBindingAttribute(Name="ServiceSoap", Namespace="http://tempuri.org/")]
|
|
public partial class Service : System.Web.Services.Protocols.SoapHttpClientProtocol {
|
|
|
|
private System.Threading.SendOrPostCallback HelloWorldOperationCompleted;
|
|
|
|
private System.Threading.SendOrPostCallback ServiceMessageOperationCompleted;
|
|
|
|
private bool useDefaultCredentialsSetExplicitly;
|
|
|
|
/// <remarks/>
|
|
public Service() {
|
|
this.Url = global::Stone.DataService.Biz.Properties.Settings.Default.Stone_DataService_Biz_PDAService_Service;
|
|
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
|
|
this.UseDefaultCredentials = true;
|
|
this.useDefaultCredentialsSetExplicitly = false;
|
|
}
|
|
else {
|
|
this.useDefaultCredentialsSetExplicitly = true;
|
|
}
|
|
}
|
|
|
|
public new string Url {
|
|
get {
|
|
return base.Url;
|
|
}
|
|
set {
|
|
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
|
|
&& (this.useDefaultCredentialsSetExplicitly == false))
|
|
&& (this.IsLocalFileSystemWebService(value) == false))) {
|
|
base.UseDefaultCredentials = false;
|
|
}
|
|
base.Url = value;
|
|
}
|
|
}
|
|
|
|
public new bool UseDefaultCredentials {
|
|
get {
|
|
return base.UseDefaultCredentials;
|
|
}
|
|
set {
|
|
base.UseDefaultCredentials = value;
|
|
this.useDefaultCredentialsSetExplicitly = true;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
public event HelloWorldCompletedEventHandler HelloWorldCompleted;
|
|
|
|
/// <remarks/>
|
|
public event ServiceMessageCompletedEventHandler ServiceMessageCompleted;
|
|
|
|
/// <remarks/>
|
|
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/HelloWorld", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
|
public string HelloWorld() {
|
|
object[] results = this.Invoke("HelloWorld", new object[0]);
|
|
return ((string)(results[0]));
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void HelloWorldAsync() {
|
|
this.HelloWorldAsync(null);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void HelloWorldAsync(object userState) {
|
|
if ((this.HelloWorldOperationCompleted == null)) {
|
|
this.HelloWorldOperationCompleted = new System.Threading.SendOrPostCallback(this.OnHelloWorldOperationCompleted);
|
|
}
|
|
this.InvokeAsync("HelloWorld", new object[0], this.HelloWorldOperationCompleted, userState);
|
|
}
|
|
|
|
private void OnHelloWorldOperationCompleted(object arg) {
|
|
if ((this.HelloWorldCompleted != null)) {
|
|
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
|
this.HelloWorldCompleted(this, new HelloWorldCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ServiceMessage", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
|
public System.Data.DataSet ServiceMessage(System.Data.DataSet dsCommand, System.Data.DataSet dsData, ref string ErrMessage) {
|
|
object[] results = this.Invoke("ServiceMessage", new object[] {
|
|
dsCommand,
|
|
dsData,
|
|
ErrMessage});
|
|
ErrMessage = ((string)(results[1]));
|
|
return ((System.Data.DataSet)(results[0]));
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void ServiceMessageAsync(System.Data.DataSet dsCommand, System.Data.DataSet dsData, string ErrMessage) {
|
|
this.ServiceMessageAsync(dsCommand, dsData, ErrMessage, null);
|
|
}
|
|
|
|
/// <remarks/>
|
|
public void ServiceMessageAsync(System.Data.DataSet dsCommand, System.Data.DataSet dsData, string ErrMessage, object userState) {
|
|
if ((this.ServiceMessageOperationCompleted == null)) {
|
|
this.ServiceMessageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnServiceMessageOperationCompleted);
|
|
}
|
|
this.InvokeAsync("ServiceMessage", new object[] {
|
|
dsCommand,
|
|
dsData,
|
|
ErrMessage}, this.ServiceMessageOperationCompleted, userState);
|
|
}
|
|
|
|
private void OnServiceMessageOperationCompleted(object arg) {
|
|
if ((this.ServiceMessageCompleted != null)) {
|
|
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
|
this.ServiceMessageCompleted(this, new ServiceMessageCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
public new void CancelAsync(object userState) {
|
|
base.CancelAsync(userState);
|
|
}
|
|
|
|
private bool IsLocalFileSystemWebService(string url) {
|
|
if (((url == null)
|
|
|| (url == string.Empty))) {
|
|
return false;
|
|
}
|
|
System.Uri wsUri = new System.Uri(url);
|
|
if (((wsUri.Port >= 1024)
|
|
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
|
|
public delegate void HelloWorldCompletedEventHandler(object sender, HelloWorldCompletedEventArgs e);
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
public partial class HelloWorldCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
|
|
|
private object[] results;
|
|
|
|
internal HelloWorldCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
|
base(exception, cancelled, userState) {
|
|
this.results = results;
|
|
}
|
|
|
|
/// <remarks/>
|
|
public string Result {
|
|
get {
|
|
this.RaiseExceptionIfNecessary();
|
|
return ((string)(this.results[0]));
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
|
|
public delegate void ServiceMessageCompletedEventHandler(object sender, ServiceMessageCompletedEventArgs e);
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
|
public partial class ServiceMessageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
|
|
|
private object[] results;
|
|
|
|
internal ServiceMessageCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
|
base(exception, cancelled, userState) {
|
|
this.results = results;
|
|
}
|
|
|
|
/// <remarks/>
|
|
public System.Data.DataSet Result {
|
|
get {
|
|
this.RaiseExceptionIfNecessary();
|
|
return ((System.Data.DataSet)(this.results[0]));
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
public string ErrMessage {
|
|
get {
|
|
this.RaiseExceptionIfNecessary();
|
|
return ((string)(this.results[1]));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#pragma warning restore 1591
|