Last active
June 9, 2022 20:19
Star
You must be signed in to star a gist
c# reference imported from a Web Service in Visual Studio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace XAFProject.Module.WS.MCWFUsers | |
{ | |
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] | |
[System.ServiceModel.ServiceContractAttribute(Namespace = "http://services.senior.com.br", ConfigurationName = "MCWFUsers.sapiens_SyncMCWFUsers")] | |
public interface sapiens_SyncMCWFUsers | |
{ | |
[System.ServiceModel.OperationContractAttribute(Action="http://services.senior.com.br/sapiens_SyncMCWFUsers/GetUserGroupsRequest", ReplyAction="http://services.senior.com.br/sapiens_SyncMCWFUsers/GetUserGroupsResponse")] | |
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] | |
MCWFUsers.GetUserGroupsResponse GetUserGroups(MCWFUsers.GetUserGroupsRequest request); | |
[System.ServiceModel.OperationContractAttribute(Action="http://services.senior.com.br/sapiens_SyncMCWFUsers/GetUserGroupsRequest", ReplyAction="http://services.senior.com.br/sapiens_SyncMCWFUsers/GetUserGroupsResponse")] | |
System.Threading.Tasks.Task<MCWFUsers.GetUserGroupsResponse> GetUserGroupsAsync(MCWFUsers.GetUserGroupsRequest request); | |
[System.ServiceModel.OperationContractAttribute(Action = "http://services.senior.com.br/sapiens_SyncMCWFUsers/AuthenticateJAASRequest", ReplyAction = "http://services.senior.com.br/sapiens_SyncMCWFUsers/AuthenticateJAASResponse")] | |
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults = true)] | |
MCWFUsers.AuthenticateJAASResponse AuthenticateJAAS(MCWFUsers.AuthenticateJAASRequest request); | |
[System.ServiceModel.OperationContractAttribute(Action = "http://services.senior.com.br/sapiens_SyncMCWFUsers/AuthenticateJAASRequest", ReplyAction = "http://services.senior.com.br/sapiens_SyncMCWFUsers/AuthenticateJAASResponse")] | |
System.Threading.Tasks.Task<MCWFUsers.AuthenticateJAASResponse> AuthenticateJAASAsync(MCWFUsers.AuthenticateJAASRequest request); | |
} | |
/// <remarks/> | |
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] | |
[System.Diagnostics.DebuggerStepThroughAttribute()] | |
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://services.senior.com.br")] | |
public partial class mcwfUsersGetUserGroupsOut | |
{ | |
private string erroExecucaoField; | |
private string pmGetUserGroupsResultField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 0)] | |
public string erroExecucao | |
{ | |
get | |
{ | |
return this.erroExecucaoField; | |
} | |
set | |
{ | |
this.erroExecucaoField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 1)] | |
public string pmGetUserGroupsResult | |
{ | |
get | |
{ | |
return this.pmGetUserGroupsResultField; | |
} | |
set | |
{ | |
this.pmGetUserGroupsResultField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] | |
[System.Diagnostics.DebuggerStepThroughAttribute()] | |
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://services.senior.com.br")] | |
public partial class mcwfUsersGetUserGroupsIn | |
{ | |
private string flowInstanceIDField; | |
private string flowNameField; | |
private string pmGetUserGroupsUserNameField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 0)] | |
public string flowInstanceID | |
{ | |
get | |
{ | |
return this.flowInstanceIDField; | |
} | |
set | |
{ | |
this.flowInstanceIDField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 1)] | |
public string flowName | |
{ | |
get | |
{ | |
return this.flowNameField; | |
} | |
set | |
{ | |
this.flowNameField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 2)] | |
public string pmGetUserGroupsUserName | |
{ | |
get | |
{ | |
return this.pmGetUserGroupsUserNameField; | |
} | |
set | |
{ | |
this.pmGetUserGroupsUserNameField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] | |
[System.Diagnostics.DebuggerStepThroughAttribute()] | |
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://services.senior.com.br")] | |
public partial class mcwfUsersAuthenticateJAASOut | |
{ | |
private string erroExecucaoField; | |
private string pmLoggedField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 0)] | |
public string erroExecucao | |
{ | |
get | |
{ | |
return this.erroExecucaoField; | |
} | |
set | |
{ | |
this.erroExecucaoField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 1)] | |
public string pmLogged | |
{ | |
get | |
{ | |
return this.pmLoggedField; | |
} | |
set | |
{ | |
this.pmLoggedField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] | |
[System.Diagnostics.DebuggerStepThroughAttribute()] | |
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://services.senior.com.br")] | |
public partial class mcwfUsersAuthenticateJAASIn | |
{ | |
private string flowInstanceIDField; | |
private string flowNameField; | |
private System.Nullable<int> pmEncryptedField; | |
private bool pmEncryptedFieldSpecified; | |
private string pmUserNameField; | |
private string pmUserPasswordField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 0)] | |
public string flowInstanceID | |
{ | |
get | |
{ | |
return this.flowInstanceIDField; | |
} | |
set | |
{ | |
this.flowInstanceIDField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 1)] | |
public string flowName | |
{ | |
get | |
{ | |
return this.flowNameField; | |
} | |
set | |
{ | |
this.flowNameField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 2)] | |
public System.Nullable<int> pmEncrypted | |
{ | |
get | |
{ | |
return this.pmEncryptedField; | |
} | |
set | |
{ | |
this.pmEncryptedField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlIgnoreAttribute()] | |
public bool pmEncryptedSpecified | |
{ | |
get | |
{ | |
return this.pmEncryptedFieldSpecified; | |
} | |
set | |
{ | |
this.pmEncryptedFieldSpecified = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 3)] | |
public string pmUserName | |
{ | |
get | |
{ | |
return this.pmUserNameField; | |
} | |
set | |
{ | |
this.pmUserNameField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 4)] | |
public string pmUserPassword | |
{ | |
get | |
{ | |
return this.pmUserPasswordField; | |
} | |
set | |
{ | |
this.pmUserPasswordField = value; | |
} | |
} | |
} | |
[System.Diagnostics.DebuggerStepThroughAttribute()] | |
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] | |
[System.ServiceModel.MessageContractAttribute(WrapperName="GetUserGroups", WrapperNamespace="http://services.senior.com.br", IsWrapped=true)] | |
public partial class GetUserGroupsRequest | |
{ | |
[System.ServiceModel.MessageBodyMemberAttribute(Namespace= "", Order=0)] | |
public string user; | |
[System.ServiceModel.MessageBodyMemberAttribute(Namespace= "", Order=1)] | |
public string password; | |
[System.ServiceModel.MessageBodyMemberAttribute(Namespace= "", Order=2)] | |
public int encryption; | |
[System.ServiceModel.MessageBodyMemberAttribute(Namespace= "", Order=3)] | |
public MCWFUsers.mcwfUsersGetUserGroupsIn parameters; | |
public GetUserGroupsRequest() | |
{ | |
} | |
public GetUserGroupsRequest(string user, string password, int encryption, MCWFUsers.mcwfUsersGetUserGroupsIn parameters) | |
{ | |
this.user = user; | |
this.password = password; | |
this.encryption = encryption; | |
this.parameters = parameters; | |
} | |
} | |
[System.Diagnostics.DebuggerStepThroughAttribute()] | |
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] | |
[System.ServiceModel.MessageContractAttribute(WrapperName="GetUserGroupsResponse", WrapperNamespace="http://services.senior.com.br", IsWrapped=true)] | |
public partial class GetUserGroupsResponse | |
{ | |
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=0)] | |
public MCWFUsers.mcwfUsersGetUserGroupsOut result; | |
public GetUserGroupsResponse() | |
{ | |
} | |
public GetUserGroupsResponse(MCWFUsers.mcwfUsersGetUserGroupsOut result) | |
{ | |
this.result = result; | |
} | |
} | |
[System.Diagnostics.DebuggerStepThroughAttribute()] | |
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] | |
[System.ServiceModel.MessageContractAttribute(WrapperName = "AuthenticateJAAS", WrapperNamespace = "http://services.senior.com.br", IsWrapped = true)] | |
public partial class AuthenticateJAASRequest | |
{ | |
[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "", Order = 0)] | |
public string user; | |
[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "", Order = 1)] | |
public string password; | |
[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "", Order = 2)] | |
public int encryption; | |
[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "", Order = 3)] | |
public MCWFUsers.mcwfUsersAuthenticateJAASIn parameters; | |
public AuthenticateJAASRequest() | |
{ | |
} | |
public AuthenticateJAASRequest(string user, string password, int encryption, MCWFUsers.mcwfUsersAuthenticateJAASIn parameters) | |
{ | |
this.user = user; | |
this.password = password; | |
this.encryption = encryption; | |
this.parameters = parameters; | |
} | |
} | |
[System.Diagnostics.DebuggerStepThroughAttribute()] | |
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] | |
[System.ServiceModel.MessageContractAttribute(WrapperName = "AuthenticateJAASResponse", WrapperNamespace = "http://services.senior.com.br", IsWrapped = true)] | |
public partial class AuthenticateJAASResponse | |
{ | |
[System.ServiceModel.MessageBodyMemberAttribute(Namespace = "", Order = 0)] | |
public MCWFUsers.mcwfUsersAuthenticateJAASOut result; | |
public AuthenticateJAASResponse() | |
{ | |
} | |
public AuthenticateJAASResponse(MCWFUsers.mcwfUsersAuthenticateJAASOut result) | |
{ | |
this.result = result; | |
} | |
} | |
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] | |
public interface sapiens_SyncMCWFUsersChannel : MCWFUsers.sapiens_SyncMCWFUsers, System.ServiceModel.IClientChannel | |
{ | |
} | |
[System.Diagnostics.DebuggerStepThroughAttribute()] | |
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] | |
public partial class sapiens_SyncMCWFUsersClient : System.ServiceModel.ClientBase<MCWFUsers.sapiens_SyncMCWFUsers>, MCWFUsers.sapiens_SyncMCWFUsers | |
{ | |
/// <summary> | |
/// Implemente este método parcial para configurar o ponto de extremidade de serviço. | |
/// </summary> | |
/// <param name="serviceEndpoint">O ponto de extremidade a ser configurado</param> | |
/// <param name="clientCredentials">As credenciais do cliente</param> | |
static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials); | |
public sapiens_SyncMCWFUsersClient() : | |
base(sapiens_SyncMCWFUsersClient.GetDefaultBinding(), sapiens_SyncMCWFUsersClient.GetDefaultEndpointAddress()) | |
{ | |
this.Endpoint.Name = EndpointConfiguration.sapiens_SyncMCWFUsersPort.ToString(); | |
ConfigureEndpoint(this.Endpoint, this.ClientCredentials); | |
} | |
public sapiens_SyncMCWFUsersClient(EndpointConfiguration endpointConfiguration) : | |
base(sapiens_SyncMCWFUsersClient.GetBindingForEndpoint(endpointConfiguration), sapiens_SyncMCWFUsersClient.GetEndpointAddress(endpointConfiguration)) | |
{ | |
this.Endpoint.Name = endpointConfiguration.ToString(); | |
ConfigureEndpoint(this.Endpoint, this.ClientCredentials); | |
} | |
public sapiens_SyncMCWFUsersClient(EndpointConfiguration endpointConfiguration, string remoteAddress) : | |
base(sapiens_SyncMCWFUsersClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress)) | |
{ | |
this.Endpoint.Name = endpointConfiguration.ToString(); | |
ConfigureEndpoint(this.Endpoint, this.ClientCredentials); | |
} | |
public sapiens_SyncMCWFUsersClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : | |
base(sapiens_SyncMCWFUsersClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) | |
{ | |
this.Endpoint.Name = endpointConfiguration.ToString(); | |
ConfigureEndpoint(this.Endpoint, this.ClientCredentials); | |
} | |
public sapiens_SyncMCWFUsersClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : | |
base(binding, remoteAddress) | |
{ | |
} | |
public MCWFUsers.GetUserGroupsResponse GetUserGroups(MCWFUsers.GetUserGroupsRequest request) | |
{ | |
return base.Channel.GetUserGroups(request); | |
} | |
public System.Threading.Tasks.Task<MCWFUsers.GetUserGroupsResponse> GetUserGroupsAsync(MCWFUsers.GetUserGroupsRequest request) | |
{ | |
return base.Channel.GetUserGroupsAsync(request); | |
} | |
public MCWFUsers.AuthenticateJAASResponse AuthenticateJAAS(MCWFUsers.AuthenticateJAASRequest request) | |
{ | |
return base.Channel.AuthenticateJAAS(request); | |
} | |
public System.Threading.Tasks.Task<MCWFUsers.AuthenticateJAASResponse> AuthenticateJAASAsync(MCWFUsers.AuthenticateJAASRequest request) | |
{ | |
return base.Channel.AuthenticateJAASAsync(request); | |
} | |
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)); | |
} | |
public virtual System.Threading.Tasks.Task CloseAsync() | |
{ | |
return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndClose)); | |
} | |
private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration) | |
{ | |
if ((endpointConfiguration == EndpointConfiguration.sapiens_SyncMCWFUsersPort)) | |
{ | |
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("Não foi possível encontrar o ponto de extremidade com o nome \'{0}\'.", endpointConfiguration)); | |
} | |
private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration) | |
{ | |
if ((endpointConfiguration == EndpointConfiguration.sapiens_SyncMCWFUsersPort)) | |
{ | |
return new System.ServiceModel.EndpointAddress("http://192.168.0.140:8080/g5-senior-services/sapiens_SyncMCWFUsers"); | |
} | |
throw new System.InvalidOperationException(string.Format("Não foi possível encontrar o ponto de extremidade com o nome \'{0}\'.", endpointConfiguration)); | |
} | |
private static System.ServiceModel.Channels.Binding GetDefaultBinding() | |
{ | |
return sapiens_SyncMCWFUsersClient.GetBindingForEndpoint(EndpointConfiguration.sapiens_SyncMCWFUsersPort); | |
} | |
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() | |
{ | |
return sapiens_SyncMCWFUsersClient.GetEndpointAddress(EndpointConfiguration.sapiens_SyncMCWFUsersPort); | |
} | |
public enum EndpointConfiguration | |
{ | |
sapiens_SyncMCWFUsersPort, | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment