https पर काम करने के लिए wcf कैसे बनाएं। मैं https पर इस डब्ल्यूसीएफ का उपयोग करना चाहता हूं मैंने कई लेख खोजे हैं जिन्हें मुझे जवाब नहीं मिला है कृपया कृपया wcf अवधारणाओं के लिए नया Iam मदद करें। मैं यह ajax से कॉल करने के लिए, jQueryडब्ल्यूसीएफ रीस्टफुल सेवा पर एचटीटीपीएस कैसे सक्षम करें?
<system.serviceModel >
<services>
<service
name="WcfRestfulService.HttpService" behaviorConfiguration="ServiceBehaviour" >
<endpoint address="" binding="webHttpBinding" behaviorConfiguration="web"
contract="WcfRestfulService.IHttpService">
</endpoint>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehaviour">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpsGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="web">
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
आप इसे केवल के साथ साथ चाहते हैं 'webHttpBinding' या' basichttpbinding' भी उद्देश्य पूरा होगा? –
डेरेक डब्ल्यू के जवाब एकदम सही है, लेकिन एक बिंदु के लिए: < बाइंडिंग > तत्व < सेवाओं > अंदर नहीं हो सकता है - यह अपने स्थान पर हिलता </सेवाओं > के बाद और < व्यवहार > से पहले। – Craig