{"id":1292,"date":"2016-02-16T23:41:19","date_gmt":"2016-02-16T12:41:19","guid":{"rendered":"http:\/\/ntsblog.homedev.com.au\/?p=1292"},"modified":"2016-02-16T23:41:19","modified_gmt":"2016-02-16T12:41:19","slug":"running-wcf-service-http-https","status":"publish","type":"post","link":"https:\/\/ntsblog.homedev.com.au\/index.php\/2016\/02\/16\/running-wcf-service-http-https\/","title":{"rendered":"Running WCF Service as both HTTP and HTTPS"},"content":{"rendered":"<div id=\"ntsbl-3038115622\" class=\"ntsbl-before-content ntsbl-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-6288941070289539\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:inline-block;width:728px;height:90px;\" \ndata-ad-client=\"ca-pub-6288941070289539\" \ndata-ad-slot=\"9356781486\"><\/ins> \n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div><p>When trying to configure a WCF service to run as both a HTTP and HTTPS endpoint there are some differences to consider:<\/p>\n<ol>\n<li>HTTP uses SOAP 1.1 <\/li>\n<li>HTTPS uses SOAP 1.2<\/li>\n<\/ol>\n<p>This can cause issues with how your XML packets need to be generated with different SOAP Headers.<\/p>\n<h3>SSL Config<\/h3>\n<p>On the IIS Manager under the website there is a tile titled &#8220;SSL Settings&#8221;.<br \/>\nTo run both HTTP and HTTPS ensure &#8220;Require SSL&#8221; is <strong>unticked<\/strong><\/p>\n<h3>Web Config<\/h3>\n<p>If you want to allow people to generate a .wsdl file do not forget to set this in the web config in the service behaviours<br \/>\n[code]<br \/>\n&lt;serviceMetadata httpGetEnabled=&quot;true&quot; httpsGetEnabled=&quot;true&quot; \/&gt;<br \/>\n[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When trying to configure a WCF service to run as both a HTTP and HTTPS endpoint there are some differences to consider: HTTP uses SOAP [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1292","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts\/1292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/comments?post=1292"}],"version-history":[{"count":0,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts\/1292\/revisions"}],"wp:attachment":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=1292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=1292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=1292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}