WCAT 6.1 for WCF DataService

时间:2013-02-12 06:13:05

标签: wcf-data-services wcat

我正在使用WCAT 6.1进行WCF DataService。 是否可以在执行WCAT脚本时在我的代码中插入断点?

1 个答案:

答案 0 :(得分:0)

我自己从未这样做过,但我可以想象在执行WCAT脚本时调试WCF DataService与通过accessing the DataService from a web browser手动调试它没什么不同。

使其工作的关键是你需要配置你的WCAT场景,以便向一个URI发出请求,该URI解析为运行DataService并安装了VS.NET的计算机。

假设您的DataService托管在http://localhost:12345/northwind.svc

然后,您可以将场景设置为具有如下所示的请求:

scenario
{
    transaction                        
    {                                  
        id = "Debug WCF DataService";
        weight = 10;

        request
        {
          verb = GET;
          url = "http://localhost:12345/northwind.svc";
        }
    }
}
祝你好运!