Friday, March 12, 2010

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

Programmer Question

I am trying to make a WCF service over basicHttpBinding to be used over https. Here's my web.config:



  <service behaviorConfiguration="MyServices.PingResultServiceBehavior"
name="MyServices.PingResultService">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="defaultBasicHttpBinding"
contract="MyServices.IPingResultService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>


...



<bindings>
<basicHttpBinding>
<binding name="defaultBasicHttpBinding">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</basicHttpBinding>
</bindings>


...









I am connecting using WCFStorm which is able to retrieve all the meta data properly, but when I call the actual method I get:



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



Any ideas?



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails