The provided URI scheme ‘https’ is invalid; expected ‘http’

Posted: November 8, 2013 in .Net/C#

When connecting to a https SOAP web service, you may receive the error

The provided URI scheme ‘https’ is invalid; expected ‘http’

To fix it, inside the app.config <binding> section, you need add

<binding ............>
	<readerQuotas .../>
	<security mode="Transport">
		<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
		<message clientCredentialType="UserName" algorithmSuite="Default"/>
	</security>
</binding>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s