i am just checking whether the method is working or not .but i am getting end point not found .
in the url i provided the link as below:
http://localhost/WcfService1/Service1.svc/kuna/hai
// my web.config file://
<services>
<service name="WcfService1.Service1">
<endpoint address="" behaviorConfiguration="restfulBehaviour" binding="webHttpBinding" bindingConfiguration="" contract="WcfService1.IService1"></endpoint>
<host>
<baseAddresses>
<add baseAddress="http://localhost/WcfService1/Service1.svc"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" 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="restfulBehaviour">
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
---------------------------------------------------------
my service file
jus passing two parameters as input and expecting true as o/p
public class Service1 : IService1
{
public bool CheckLoginDetails(string UN, string P)
{
return true;
}
}
interface for service file: Iservice file: [ServiceContract] public interface IService1 { [OperationContract] [WebGet(UriTemplate = "CheckLoginDetails/{UN}/{P}")] bool CheckLoginDetails(string UN, string P); }