first of all if you want to get data from android app and store in database , then create a wcf service , then define [OperationContract] in interface like below
[OperationContract]
[WebInvoke(UriTemplate = "/GetBarCodeData/{barcode}", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
string GetBarCodeData(string barcode);
then write the logic in .svc.cs for inserting data in server (Like traditional way)
now go to web.config file
in <system.servicemodel> define end points and behaviours
<pre> <system.serviceModel>
<bindings>
<webHttpBinding>
<binding bypassProxyOnLocal="true" useDefaultWebProxy="false" hostNameComparisonMode="WeakWildcard" sendTimeout="10:15:00" openTimeout="10:15:00" receiveTimeout="10:15:00" maxBufferSize="2147483647" transferMode="StreamedRequest" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None" />
</binding>
</webHttpBinding>
</bindings>
<services>
<service name="Pojectname.serviceclassname" behaviorConfiguration="Pojectname.serviceclassnameBehavior">
<endpoint address="" binding="webHttpBinding" contract="Pojectname.serviceinterfacename" behaviorConfiguration="webBehaviour" />
<endpoint name="mexHttpBinding" address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Pojectname.serviceclassnameBehavior">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="webBehaviour">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" minFreeMemoryPercentageToActivateService="0" />
</system.serviceModel
>
hope it will help you.