Updating TFS event listeners to work with RC and RTM releases


You may have read before about the fact that the TFS protocol version number changed between beta 3 and RC.  As a result, you have to upgrade pre-RC clients when you upgrade the server to RC or RTM (the version number for RTM should be the same as RC).

The other thing you’ll need to update is any web services that you have subscribed to TFS event notifications.  For example, I updated the Continuous Integration example code from Doug’s TechEd presentation.

In your code, you’ll need to change the “02” to “03” in the SoapDocumentMethod attributes.

Old:

    [SoapDocumentMethod(“http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/02/Notify”,
                        RequestNamespace = “http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/02“)]

New (RC and RTM):

    [SoapDocumentMethod(“http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/03/Notify”,
                        RequestNamespace = “http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/03“)]

Comments (2)

  1. csell says:

    It appears the Web Method signature has also changed.

    B3 Refresh:

    void Notify( string eventXml, string tfsIdentityXml );

    RC:

    void Notify( string eventXml, string tfsIdentityXml, SubscriptionInfo SubscriptionInfo );

  2. John Lawrence posts their Team Foundation Dogfood Statistics for February.

    It’s Rob Caron time: