c# - Unable to call through https request -


i'm using website contain .svc file , hosted on https rest api. question is: website has svcutil.exe https://xxxxxxx when call https request fails working fine http request.and don’t want use ssl certificates thanks

this webconfig settings:

  <servicebehaviors>     <behavior name="mybehaviour">       <servicemetadata httpsgetenabled="true" />       <servicedebug includeexceptiondetailinfaults="true" />     </behavior>   </servicebehaviors> </behaviors> <servicehostingenvironment aspnetcompatibilityenabled="true" multiplesitebindingsenabled="true" /> <services>   <service behaviorconfiguration="mybehaviour" name="pbuiservice">     <endpoint address="https://xxxxxxxxxxxxxxx" behaviorconfiguration="pbbehaviour" binding="webhttpbinding" bindingconfiguration="wshttpbindingsettings" contract="pbuiservice">     </endpoint>     <endpoint address="mex" binding="mexhttpsbinding"  contract="imetadataexchange" />   </service>    </services> 

i've added following lines make work https:

<system.servicemodel>     <bindings>         <webhttpbinding>             <binding name="webbinding">                 <security mode="transport">                 </security>             </binding>         </webhttpbinding>                </bindings> 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -