258 lines
14 KiB
C#
258 lines
14 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace SoapClient.UserSOAPServiceImplService
|
|
{
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
[System.ServiceModel.ServiceContractAttribute(Namespace="http://soapsoapsoap.com/", ConfigurationName="SoapClient.UserSOAPServiceImplService.UserSOAPService")]
|
|
public interface UserSOAPService
|
|
{
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://soapsoapsoap.com/UserSOAPService/addScoreRequest", ReplyAction="http://soapsoapsoap.com/UserSOAPService/addScoreResponse")]
|
|
[System.ServiceModel.XmlSerializerFormatAttribute(Style=System.ServiceModel.OperationFormatStyle.Rpc, SupportFaults=true)]
|
|
[return: System.ServiceModel.MessageParameterAttribute(Name="return")]
|
|
System.Threading.Tasks.Task<bool> addScoreAsync(int arg0, string arg1, double arg2);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://soapsoapsoap.com/UserSOAPService/getUsersListRequest", ReplyAction="http://soapsoapsoap.com/UserSOAPService/getUsersListResponse")]
|
|
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
|
|
System.Threading.Tasks.Task<SoapClient.UserSOAPServiceImplService.getUsersListResponse> getUsersListAsync(SoapClient.UserSOAPServiceImplService.getUsersListRequest request);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://soapsoapsoap.com/UserSOAPService/getUserByIdRequest", ReplyAction="http://soapsoapsoap.com/UserSOAPService/getUserByIdResponse")]
|
|
[System.ServiceModel.XmlSerializerFormatAttribute(Style=System.ServiceModel.OperationFormatStyle.Rpc, SupportFaults=true)]
|
|
[return: System.ServiceModel.MessageParameterAttribute(Name="return")]
|
|
System.Threading.Tasks.Task<string> getUserByIdAsync(int arg0);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://soapsoapsoap.com/UserSOAPService/calculateAverageScoreRequest", ReplyAction="http://soapsoapsoap.com/UserSOAPService/calculateAverageScoreResponse")]
|
|
[System.ServiceModel.XmlSerializerFormatAttribute(Style=System.ServiceModel.OperationFormatStyle.Rpc, SupportFaults=true)]
|
|
[return: System.ServiceModel.MessageParameterAttribute(Name="return")]
|
|
System.Threading.Tasks.Task<double> calculateAverageScoreAsync(int arg0);
|
|
|
|
[System.ServiceModel.OperationContractAttribute(Action="http://soapsoapsoap.com/UserSOAPService/findActivitiesByScoreRequest", ReplyAction="http://soapsoapsoap.com/UserSOAPService/findActivitiesByScoreResponse")]
|
|
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
|
|
System.Threading.Tasks.Task<SoapClient.UserSOAPServiceImplService.findActivitiesByScoreResponse> findActivitiesByScoreAsync(SoapClient.UserSOAPServiceImplService.findActivitiesByScoreRequest request);
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getUsersList", WrapperNamespace="http://soapsoapsoap.com/", IsWrapped=true)]
|
|
public partial class getUsersListRequest
|
|
{
|
|
|
|
public getUsersListRequest()
|
|
{
|
|
}
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getUsersListResponse", WrapperNamespace="http://soapsoapsoap.com/", IsWrapped=true)]
|
|
public partial class getUsersListResponse
|
|
{
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=0)]
|
|
[System.Xml.Serialization.XmlArrayAttribute()]
|
|
[System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public string[] @return;
|
|
|
|
public getUsersListResponse()
|
|
{
|
|
}
|
|
|
|
public getUsersListResponse(string[] @return)
|
|
{
|
|
this.@return = @return;
|
|
}
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
[System.ServiceModel.MessageContractAttribute(WrapperName="findActivitiesByScore", WrapperNamespace="http://soapsoapsoap.com/", IsWrapped=true)]
|
|
public partial class findActivitiesByScoreRequest
|
|
{
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=0)]
|
|
public string arg0;
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=1)]
|
|
public double arg1;
|
|
|
|
public findActivitiesByScoreRequest()
|
|
{
|
|
}
|
|
|
|
public findActivitiesByScoreRequest(string arg0, double arg1)
|
|
{
|
|
this.arg0 = arg0;
|
|
this.arg1 = arg1;
|
|
}
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
[System.ServiceModel.MessageContractAttribute(WrapperName="findActivitiesByScoreResponse", WrapperNamespace="http://soapsoapsoap.com/", IsWrapped=true)]
|
|
public partial class findActivitiesByScoreResponse
|
|
{
|
|
|
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=0)]
|
|
[System.Xml.Serialization.XmlArrayAttribute()]
|
|
[System.Xml.Serialization.XmlArrayItemAttribute("item", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
|
|
public string[] @return;
|
|
|
|
public findActivitiesByScoreResponse()
|
|
{
|
|
}
|
|
|
|
public findActivitiesByScoreResponse(string[] @return)
|
|
{
|
|
this.@return = @return;
|
|
}
|
|
}
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
public interface UserSOAPServiceChannel : SoapClient.UserSOAPServiceImplService.UserSOAPService, System.ServiceModel.IClientChannel
|
|
{
|
|
}
|
|
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.1.0")]
|
|
public partial class UserSOAPServiceClient : System.ServiceModel.ClientBase<SoapClient.UserSOAPServiceImplService.UserSOAPService>, SoapClient.UserSOAPServiceImplService.UserSOAPService
|
|
{
|
|
|
|
/// <summary>
|
|
/// Implement this partial method to configure the service endpoint.
|
|
/// </summary>
|
|
/// <param name="serviceEndpoint">The endpoint to configure</param>
|
|
/// <param name="clientCredentials">The client credentials</param>
|
|
static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
|
|
|
|
public UserSOAPServiceClient() :
|
|
base(UserSOAPServiceClient.GetDefaultBinding(), UserSOAPServiceClient.GetDefaultEndpointAddress())
|
|
{
|
|
this.Endpoint.Name = EndpointConfiguration.UserSOAPServiceImplPort.ToString();
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
}
|
|
|
|
public UserSOAPServiceClient(EndpointConfiguration endpointConfiguration) :
|
|
base(UserSOAPServiceClient.GetBindingForEndpoint(endpointConfiguration), UserSOAPServiceClient.GetEndpointAddress(endpointConfiguration))
|
|
{
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
}
|
|
|
|
public UserSOAPServiceClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
|
|
base(UserSOAPServiceClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
|
|
{
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
}
|
|
|
|
public UserSOAPServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
|
|
base(UserSOAPServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
|
|
{
|
|
this.Endpoint.Name = endpointConfiguration.ToString();
|
|
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
|
|
}
|
|
|
|
public UserSOAPServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
|
|
base(binding, remoteAddress)
|
|
{
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<bool> addScoreAsync(int arg0, string arg1, double arg2)
|
|
{
|
|
return base.Channel.addScoreAsync(arg0, arg1, arg2);
|
|
}
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
System.Threading.Tasks.Task<SoapClient.UserSOAPServiceImplService.getUsersListResponse> SoapClient.UserSOAPServiceImplService.UserSOAPService.getUsersListAsync(SoapClient.UserSOAPServiceImplService.getUsersListRequest request)
|
|
{
|
|
return base.Channel.getUsersListAsync(request);
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<SoapClient.UserSOAPServiceImplService.getUsersListResponse> getUsersListAsync()
|
|
{
|
|
SoapClient.UserSOAPServiceImplService.getUsersListRequest inValue = new SoapClient.UserSOAPServiceImplService.getUsersListRequest();
|
|
return ((SoapClient.UserSOAPServiceImplService.UserSOAPService)(this)).getUsersListAsync(inValue);
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<string> getUserByIdAsync(int arg0)
|
|
{
|
|
return base.Channel.getUserByIdAsync(arg0);
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<double> calculateAverageScoreAsync(int arg0)
|
|
{
|
|
return base.Channel.calculateAverageScoreAsync(arg0);
|
|
}
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
System.Threading.Tasks.Task<SoapClient.UserSOAPServiceImplService.findActivitiesByScoreResponse> SoapClient.UserSOAPServiceImplService.UserSOAPService.findActivitiesByScoreAsync(SoapClient.UserSOAPServiceImplService.findActivitiesByScoreRequest request)
|
|
{
|
|
return base.Channel.findActivitiesByScoreAsync(request);
|
|
}
|
|
|
|
public System.Threading.Tasks.Task<SoapClient.UserSOAPServiceImplService.findActivitiesByScoreResponse> findActivitiesByScoreAsync(string arg0, double arg1)
|
|
{
|
|
SoapClient.UserSOAPServiceImplService.findActivitiesByScoreRequest inValue = new SoapClient.UserSOAPServiceImplService.findActivitiesByScoreRequest();
|
|
inValue.arg0 = arg0;
|
|
inValue.arg1 = arg1;
|
|
return ((SoapClient.UserSOAPServiceImplService.UserSOAPService)(this)).findActivitiesByScoreAsync(inValue);
|
|
}
|
|
|
|
public virtual System.Threading.Tasks.Task OpenAsync()
|
|
{
|
|
return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
|
|
}
|
|
|
|
private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
|
|
{
|
|
if ((endpointConfiguration == EndpointConfiguration.UserSOAPServiceImplPort))
|
|
{
|
|
System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
|
|
result.MaxBufferSize = int.MaxValue;
|
|
result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
|
|
result.MaxReceivedMessageSize = int.MaxValue;
|
|
result.AllowCookies = true;
|
|
return result;
|
|
}
|
|
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
|
|
}
|
|
|
|
private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
|
|
{
|
|
if ((endpointConfiguration == EndpointConfiguration.UserSOAPServiceImplPort))
|
|
{
|
|
return new System.ServiceModel.EndpointAddress("http://localhost:7779/ws/user");
|
|
}
|
|
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
|
|
}
|
|
|
|
private static System.ServiceModel.Channels.Binding GetDefaultBinding()
|
|
{
|
|
return UserSOAPServiceClient.GetBindingForEndpoint(EndpointConfiguration.UserSOAPServiceImplPort);
|
|
}
|
|
|
|
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
|
|
{
|
|
return UserSOAPServiceClient.GetEndpointAddress(EndpointConfiguration.UserSOAPServiceImplPort);
|
|
}
|
|
|
|
public enum EndpointConfiguration
|
|
{
|
|
|
|
UserSOAPServiceImplPort,
|
|
}
|
|
}
|
|
}
|