title: Consume WCF service programmatically in Windows Phone 8
body: <p>I want to be able to consume a WCF Service endpoint in my Windows Phone 8 app.</p>
  
  <p>Searching on Google only showed me that I had to Right-Click on the WP8 Project, select 'Add Service Reference'... Which is not a viable solution in my case.</p>
  
  <ul>
  <li><p>I want to be able to consume a WCF service inside my Windows Phone 8 app, <em>programmatically</em>.</p></li>
  <li><p>Where do I define my client endpoint certificate in a Windows Phone 8 app?</p></li>
  </ul>
  
  <p>Imagine that I want to make a Windows Phone 8 app, which should be able to connect to a WCF service hosted on another device, i.e. a computer. Then the WP user needs to enter the hostname of that computer in order to be able to connect to the WCF service.</p>