2025-04-15 12:10:19 +02:00

400 lines
13 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.261
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
//
// This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.261.
//
#pragma warning disable 1591
namespace SEILoader.SIMPB {
using System;
using System.Web.Services;
using System.Diagnostics;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Xml.Serialization;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="TokenSoap", Namespace="http://bancafideuram.it/WSNAC/Token")]
public partial class Token : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback getTokenOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
/// <remarks/>
public Token() {
this.Url = global::SEILoader.Properties.Settings.Default.URL_Token;
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 getTokenCompletedEventHandler getTokenCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://bancafideuram.it/WSNAC/Token/getToken", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)]
[return: System.Xml.Serialization.XmlElementAttribute(Namespace="http://bancafideuram.it/WSNAC/Token")]
public TokenRes getToken([System.Xml.Serialization.XmlArrayAttribute(Namespace="http://bancafideuram.it/WSNAC/Token")] InfoClient[] infoClient) {
object[] results = this.Invoke("getToken", new object[] {
infoClient});
return ((TokenRes)(results[0]));
}
/// <remarks/>
public void getTokenAsync(InfoClient[] infoClient) {
this.getTokenAsync(infoClient, null);
}
/// <remarks/>
public void getTokenAsync(InfoClient[] infoClient, object userState) {
if ((this.getTokenOperationCompleted == null)) {
this.getTokenOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetTokenOperationCompleted);
}
this.InvokeAsync("getToken", new object[] {
infoClient}, this.getTokenOperationCompleted, userState);
}
private void OngetTokenOperationCompleted(object arg) {
if ((this.getTokenCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.getTokenCompleted(this, new getTokenCompletedEventArgs(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.Xml", "4.0.30319.233")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://bancafideuram.it/WSNAC/Token")]
public partial class InfoClient {
private string codiceApplicazioneField;
private int versioneDatabaseSIMPBField;
private string codiceReteField;
/// <remarks/>
public string codiceApplicazione {
get {
return this.codiceApplicazioneField;
}
set {
this.codiceApplicazioneField = value;
}
}
/// <remarks/>
public int versioneDatabaseSIMPB {
get {
return this.versioneDatabaseSIMPBField;
}
set {
this.versioneDatabaseSIMPBField = value;
}
}
/// <remarks/>
public string codiceRete {
get {
return this.codiceReteField;
}
set {
this.codiceReteField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://bancafideuram.it/WSNAC/Token")]
public partial class Errore {
private int codiceErroreField;
private int livelloDiSeveritaField;
private string messaggioPerUtenteFinaleField;
private string descrizioneInternaField;
private string stackTraceField;
private string codiceReteField;
/// <remarks/>
public int codiceErrore {
get {
return this.codiceErroreField;
}
set {
this.codiceErroreField = value;
}
}
/// <remarks/>
public int livelloDiSeverita {
get {
return this.livelloDiSeveritaField;
}
set {
this.livelloDiSeveritaField = value;
}
}
/// <remarks/>
public string messaggioPerUtenteFinale {
get {
return this.messaggioPerUtenteFinaleField;
}
set {
this.messaggioPerUtenteFinaleField = value;
}
}
/// <remarks/>
public string descrizioneInterna {
get {
return this.descrizioneInternaField;
}
set {
this.descrizioneInternaField = value;
}
}
/// <remarks/>
public string stackTrace {
get {
return this.stackTraceField;
}
set {
this.stackTraceField = value;
}
}
/// <remarks/>
public string codiceRete {
get {
return this.codiceReteField;
}
set {
this.codiceReteField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://bancafideuram.it/WSNAC/Token")]
public partial class InfoServer {
private bool sistemaInAggiornamentoField;
private int versioneDatabaseSIMPBField;
private string codiceApplicazioneField;
private Errore[] errorsField;
/// <remarks/>
public bool sistemaInAggiornamento {
get {
return this.sistemaInAggiornamentoField;
}
set {
this.sistemaInAggiornamentoField = value;
}
}
/// <remarks/>
public int versioneDatabaseSIMPB {
get {
return this.versioneDatabaseSIMPBField;
}
set {
this.versioneDatabaseSIMPBField = value;
}
}
/// <remarks/>
public string codiceApplicazione {
get {
return this.codiceApplicazioneField;
}
set {
this.codiceApplicazioneField = value;
}
}
/// <remarks/>
public Errore[] errors {
get {
return this.errorsField;
}
set {
this.errorsField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://bancafideuram.it/WSNAC/Token")]
public partial class SingleToken {
private string codiceReteField;
private int versioneDataBaseField;
/// <remarks/>
public string codiceRete {
get {
return this.codiceReteField;
}
set {
this.codiceReteField = value;
}
}
/// <remarks/>
public int versioneDataBase {
get {
return this.versioneDataBaseField;
}
set {
this.versioneDataBaseField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://bancafideuram.it/WSNAC/Token")]
public partial class TokenRes {
private SingleToken[] allTokenField;
private InfoServer infoField;
/// <remarks/>
public SingleToken[] allToken {
get {
return this.allTokenField;
}
set {
this.allTokenField = value;
}
}
/// <remarks/>
public InfoServer info {
get {
return this.infoField;
}
set {
this.infoField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
public delegate void getTokenCompletedEventHandler(object sender, getTokenCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class getTokenCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal getTokenCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public TokenRes Result {
get {
this.RaiseExceptionIfNecessary();
return ((TokenRes)(this.results[0]));
}
}
}
}
#pragma warning restore 1591