I found this tutorial
 
http://www.encodedna.com/wcf/tutorial/call-wcf-service-from-jquery-ajax-json-aspdotnet.htm
 
It goes only if consumer is inside the service project.

When i try to run web service the Visual Studio web client is empty. It runs if I delete endpoint from web config, but then the consumer don't go. (The external consumer).

This the web.config


  
     

               address=""
         binding="webHttpBinding"
         behaviorConfiguration="webEndPointBehavior"
         name="webEndPoint"
         contract="IBooks"/>