Error: The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via

Symptoms

When attempting to call FlexiCapture Cloud by API data source that is configured using an HTTPS web address, the following error is displayed in the feedback zone:

Error: The provided URI scheme 'https' is invalid; expected 'http'.

Parameter name: via

Cause

The problem is obvious if you are trying to access the service under HTTPS, but it’s being called with HTTP. By default, web services in Workflow are not configured to allow HTTPS connections.

 

Resolution

This method has different settings for HTTPS service and HTTP service. When you want to get data from HTTP, you should use TransportCredentialOnly. For HTTPS you should use Transport:

So on the client configuration, you need to change the security mode:

From:

<security mode="TransportCredentialOnly">

to:

<security mode="Transport">

in your app.config file. This change will allow you to use HTTPS instead of HTTP

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.