El servidor esta configurado con HTTPS, ya se configuro en el config de evolution

alt text

Se trato de enviar a autorizar la solicitud pero se mostro el mensaje a continuación

System.ArgumentException: The provided URI scheme 'https' is invalid; expected 'http'.Parameter name: via
 at System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
 at System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannelCore(EndpointAddress remoteAddress, Uri via)
 at System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
 at System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
 at System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
 at System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
 at System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
 at System.ServiceModel.ClientBase`1.CreateChannel()
 at System.ServiceModel.ClientBase`1.CreateChannelInternal()
 at System.ServiceModel.ClientBase`1.get_Channel()
 at Aseinfo.VH4.Infraestructura.Workflow.AuthorizationWorkflowService.AuthorizationWorkflowServiceClient.StartWorkflowInstance(String EntityServiceType, String ConnectionString, String Username, String ConfigConnectionString, String BaseUrl, Guid InstanceId, String ApplicationName)
 at Aseinfo.VH4.Infraestructura.Workflow.WorkflowFoundationEngine.StartCurrentInstance()
 at Aseinfo.Infrastructure.Base.Entity.EntityServiceBase`2.InitializeWorkflowInEntity(IAuthorizationWorkflowManagedEntity entity, IInstanciaRutaAutorizacion instanciaQueSeReintenta) in c:h4InfrastructureBaseEntityEntityServiceBase.cs:line 755
 at Aseinfo.Infrastructure.Common.Extensions.MvcExtensions.InicializaFlujoAutorizacion(SecuredExtendedControllerBase controller, IAuthorizationWorkflowManagedEntity entity, IAuthorizationWorkflowManagedEntityService service, IInstanciaRutaAutorizacion instanciaQueSeReintenta) in c:h4InfrastructureCommonExtensionsMvcExtensions.cs:line 580

asked 25 Jul '16, 15:44

Marvin%20Hern%C3%A1ndez's gravatar image

Marvin Hernández
(suspended)
accept rate: 0%

edited 25 Jul '16, 16:28

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635


Falta configurar adecuadamente el web.config de ambos sitios, de Evolution y de EvolutionWorkflowService.

EvoConfig, solamente soporta la configuración HTTP. Para usar HTTPS, se deben cambiar configuraciones en los archivos web.config manualmente.

Para habilitar el protocolo SSL para el Workflow, se debe configurar correctamente el endpoint en ambos lados (el server y el cliente).

Del lado del web.config del EvolutionWorkflowService, se debe habilitar los get HTTPS:

<system.serviceModel>
    <behaviors>
        <serviceBehaviors>
            <behavior>
                <serviceMetadata httpsGetEnabled="true" />
. . .
</system.serviceModel>

De igual manera, todos los bindings de los elementos dentro de system.serviceModel deben configurarse usando:

bindingConfiguration="secureHttpBinding"

Del lado del web.config de Evolution además de especificar la URL con HTTPS se deben configurar los bindings para que usen security mode Transport.

<binding name="BasicHttpBinding_IAuthorizationWorkflowService" 
         closeTimeout="00:01:00"
         . . .
         useDefaultWebProxy="true">
    <readerQuotas maxDepth="32" 
         maxStringContentLength="8192"
         . . . 
         maxBytesPerRead="4096" maxNameTableCharCount="16384" />
        <security mode="Transport">
            <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
        </security>
    </binding>

Se adjuntan algunos links para ampliar los cambios requeridos en los web.configs para habilitar HTTPS para un servicio WCF (que es el EvolutionWorkflowService).

https://msdn.microsoft.com/en-us/library/hh556232(v=vs.110).aspx

http://stackoverflow.com/questions/2435823

https://social.msdn.microsoft.com/Forums/en-US/6d228bc1-37fa-4bdc-8f7c-764a4e44490f

link

answered 25 Jul '16, 16:53

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635
accept rate: 51%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Evolution en BitBucket

En este sitio puede acceder al código fuente, centro de descargas y reportar bugs, propuestas y mejoras para Evolution.

Evolution en JIRA

En este sitio puedes sugerir nueva funcionalidad para Evolution, o puedes votar por la funcionalidad ya propuesta por otros usuarios.

Tags:

×92

Asked: 25 Jul '16, 15:44

Seen: 1,021 times

Last updated: 25 Jul '16, 16:53

[Acerca de] [Preguntas Frecuentes] [Privacidad] [Soporte] [Contacto]
Copyright 2013-2018. Asesores en Informática