Hi I am very new to using WCF (half a day old) and I have created a service which I can see via localhost
http://localhost:[port]/Service1.svc? - no 404!
However, before I want to connect to this service via an application, I want to see if the service does actually return what is meant to. (Just making sure the database connection is OK etc)
I have this on my IService (unfortunately it is in VB.Net, but I do know C#..)
<OperationContract>
<WebGet(UriTemplate:="/method/{parameter}")>
Function getData(ByVal parameter As Integer) As String
And this of course fires (or should) the method getData in the service1.svc class.
So firing up the webservice, I tried to do this...
and
However nothing. (doesnt debug on the code either)
Looking around, It could be do with my web config file which I haven't touched.
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false before deployment -->
<serviceMetadata httpGetEnabled="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>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<!--
To browse web app root directory during debugging, set the value below to true.
Set to false before deployment to avoid disclosing web app folder information.
-->
<directoryBrowse enabled="true"/>
</system.webServer>
</configuration>
What is it that I am missing?
Thanks