Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用SOAP轻松连接到TFS EventService_Soap_Visual Studio 2012_Sdk_Tfs - Fatal编程技术网

如何使用SOAP轻松连接到TFS EventService

如何使用SOAP轻松连接到TFS EventService,soap,visual-studio-2012,sdk,tfs,Soap,Visual Studio 2012,Sdk,Tfs,我似乎找不到如何连接到TFS EventService SOAP,我想我应该创建一个由TFS调用的服务,并使用stuff作为我可以使用的参数 但我在网上找不到类似的东西 我唯一发现的是: 这似乎已经过时了 我正在使用tfs2012和vs2012 @编辑:想法是连接到WorkItemStatusChange和签入事件。我使用一个接口来提供我的服务(与TFS2010和TFS2012相同) 因此,my.svc如下所示: namespace TFS_Event_Services { public cl

我似乎找不到如何连接到TFS EventService SOAP,我想我应该创建一个由TFS调用的服务,并使用stuff作为我可以使用的参数

但我在网上找不到类似的东西

我唯一发现的是: 这似乎已经过时了

我正在使用tfs2012和vs2012


@编辑:想法是连接到WorkItemStatusChange和签入事件。

我使用一个接口来提供我的服务(与TFS2010和TFS2012相同)

因此,my.svc如下所示:

namespace TFS_Event_Services
{
 public class TFS_Event_Services_2012 : ITFS_Event_Services
 {
    public void Notify(string eventXml, string tfsIdentityXml)
    {
      //do something with the Event
    }        
 }
}
.svc标记:

<%@ ServiceHost Language="C#" Debug="true" Service="TFS_Event_Services.TFS_Event_Services_2012" CodeBehind="TFS_Event_Services_2012.svc.cs" %>

创建web服务后,您需要将其发布到某些IIS上,当然,这些IIS是TFS警报soap调用的目标。

我会尝试并告诉您!(星期四)。你有我的+1=)
<%@ ServiceHost Language="C#" Debug="true" Service="TFS_Event_Services.TFS_Event_Services_2012" CodeBehind="TFS_Event_Services_2012.svc.cs" %>