c# - wcf client .exception "The provided URI scheme 'http' is invalid; expected 'https" -
i creating client wcf service. service works across sharepoint(i don't know, maybe it's important)
config:
<system.servicemodel> <bindings> <basichttpbinding> <binding name="commonservicejssoap_binding" > <security mode="transport"> <transport clientcredentialtype="windows"/> </security> </binding> </basichttpbinding> </bindings> <client> <endpoint address="http://blackwhite/_layouts/15/eos/commonservicejs.asmx" binding="basichttpbinding" bindingconfiguration="commonservicejssoap_binding" contract="commonservices.commonservicejssoap" name="commonservicejssoap_endpint" /> </client> </system.servicemodel>
code:
commonservicejssoapclient client = new commonservicejssoapclient(); client.open();
open() throw argumentexception{"the provided uri scheme 'http' invalid; expected 'https'.\r\nparameter name: via"}
commonservicejssoapclient autogenerated visual studio(vs add service reference)
anonymous access denied.
if information not enough , write me please in comment
thanks.
in binding security mode use transportcredentialonly instead of transport
Comments
Post a Comment