title: Subscribing to TFS events and WCF
body: <p>Sorry for asking a question about something I don't know much about, but I've been pulling my hair out trying to get this working.</p>
  
  <p>So, I have a WCF service that is hosted on IIS and seems to be working insomuch that I can "see" it on the network by going to <a href="http://servername/MyService.svc" rel="nofollow noreferrer">http://servername/MyService.svc</a> in a browser.</p>
  
  <p>That .svc looks like:</p>
  
  <pre><code>&lt;% @ServiceHost Service="Foo.Bar" %&gt;
  </code></pre>
  
  <p>The relevant code looks like:</p>
  
  <pre><code>    [ServiceContract(Namespace = "http://schemas.microsoft.com/TeamFoundation/2005/06Services/Notification/03")]
      public interface IBar
      {
          [OperationContract(Action = "http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/03/Notify", ReplyAction = "*")]
          [XmlSerializerFormat(Style = OperationFormatStyle.Document)]
          void Notify(string eventXml, string tfsIdentityXml);
      }
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>public class Bar : IBar
  {
      public void Notify(string eventXml, string tfsIdentityXml)
      {
          // Just some test output to see if it worked
          var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "tfs.txt");
          File.WriteAllText(path, tfsIdentityXml + eventXml);
      }
  }
  </code></pre>
  
  <p>That's all been built and the ensuing .dll put into the bin dir in the site root in IIS.</p>
  
  <p>I now want to subscribe via bissubscribe.exe (or a similar method) to TFS check-in events. I tried doing something like:</p>
  
  <pre><code>bissubscribe /eventType CheckinEvent 
    /address http://servername/MyService.svc
    /deliveryType Soap 
    /server mytfsserver
  </code></pre>
  
  <p>But nothing; it doesn't even look like there was log activity. So keeping in mind I know nothing about WCF, what am I doing wrong? I imagine the <code>address</code> param is one thing; am I not supposed to point it to the .svc?</p>