Service in JSON format and works with IPhone App.
Web.Config Settings
<system.servicemodel>
<services>
<service name="AppWCFService.GreatDealService">
<endpoint address="">
binding="webHttpBinding"
contract="AppWCFService.IGreatDealService"
behaviorConfiguration="Web"/>
</endpoint></service>
</services>
<behaviors>
<servicebehaviors>
<behavior>
<servicemetadata httpgetenabled="true" />
<servicedebug includeexceptiondetailinfaults="false" />
</behavior>
</servicebehaviors>
<endpointbehaviors>
<behavior name="Web">
<webhttp />
</behavior>
</endpointbehaviors>
</behaviors>
<servicehostingenvironment multiplesitebindingsenabled="false" aspnetcompatibilityenabled="true" />
</system.servicemodel>
Service Contact should be
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "/Products_Detail/{ProductID}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
clsGreatDeal ProductDetail(String ProductID);
Thats it.