c# - WCF Service not publishing the wsdl -


I'm fairly new to WCF services, but I never got my head around the binding and. My service is right now, works fine if tested in WCFTestClient but does not expose WSDL to other applications. I'm not sure how this is done. Here's the code:

  & lt; System.serviceModel & gt; & Lt; Behavior & gt; & Lt; ServiceBehaviors & gt; & Lt; Behavior & gt; & Lt; ServiceMetadata httpGetEnabled = "true" /> & Lt; The services included in the debugging include exceptions = DishialInstine = "false" /> & Lt; / Behavior & gt; & Lt; / ServiceBehaviors & gt; & Lt; / Behavior & gt; & Lt; Binding & gt; & Lt; BasicHttpBinding & gt; & Lt; Bond name = "default bidding configuration" & gt; & Lt ;! - & lt; Safety Mode = "None" & gt; & Lt; Transport Customer Credential Type = "None" /> & Lt; / Safety & gt; - & gt; & Lt; / Binding & gt; & Lt; / BasicHttpBinding & gt; & Lt; / Binding & gt; & Lt; Services & gt; & Lt; Service name = "service. Security service" & gt; & Lt; Endpoint address = "" name = "security service endpoint" binding = "basic HttpBinding" binding configuration = "DefaultBindingConfig" contract = "service .contract. ICACACS service" /> & Lt; Endpoint address = "Max" binding = "MaxHttpending" contract = "IMAXADEXXchange" /> & Lt; / Services & gt; & Lt; / Services & gt; & Lt; Service Hosting Environment Multiple Site EndingEnited = "True" /> [ServiceContract] Public Interface ISecurityService {{OperationContract] ApplicationSecurity GetFunctionsAllowedForUser (string user name, string application name); }  

How can I create this so that this service exposes to the WSDL? I am very new to this.

The following line should expose the wsdl metadata:

  & Lt; ServiceMetadata httpGetEnabled = "true" />  

In your browser, whatever the web address of svc , go to it and add wsdl at the end.

  http: // localhost: & lt; Port & gt; / & Lt; Alternative Folders / & gt; MyService.svc? Wsdl  

If everything is working properly, then you have a group of XML.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -