Click here to Skip to main content
16,016,157 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using the website which contain .svc file and hosted on https as rest api. My question is: My website has SVCUTIL.exe is https:XXXXXXX but when I call it with https request it fails but working fine with http request.And I don’t want use SSL certificates Thanks

This is my webconfig settings:

HTML
<servicebehaviors>
    <behavior name="Mybehaviour">
      <servicemetadata httpsgetenabled="true" />
      <servicedebug includeexceptiondetailinfaults="true" />
    </behavior>
  </servicebehaviors>

<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" />
  </endpoint></service>   
</services>
   <webhttpbinding>
        <binding name="wsHttpBindingSettings" maxreceivedmessagesize="2147483647">
          <readerquotas maxdepth="2147483647" maxstringcontentlength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
        
        </readerquotas></binding>
      </webhttpbinding>
Posted
Updated 7-Oct-13 0:21am
v3

1 solution

 
Share this answer
 
Comments
Genius15 7-Oct-13 8:53am    
If I'm using security mode=transport then I have to use SSL certificate on client side but this is Web Api which is expose to third party also So I have to access through https without using SSl certificate....Is it possible access web api through https without using certificates???
Thanks in advance.:)
As far as I know, you can't. If both source(your page) and target(WCF service) are on same domain, then you can do.
Genius15 7-Oct-13 9:32am    
Actually I have wcf and rest api(simple website using .svc file.). SSl certificate between them and its working fine.Now,if i called my Api from any domain through http then its working fine but i want to call my api through https without SSl Certificate.Ya you are right if domains are same then its ok (I tries and got success).Point is have to call api from third party application..I saw many api those provide https link(HOW)....:)
Not sure of that. But you might ask the Microsoft .NET Developers Team. They might help you. Without a certificate, it seems difficult. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900