Web services 测试web服务中的持久或非持久连接
我有一个网络服务。我正在创建一个测试应用程序,以从该Web服务获取响应。向web服务应用程序添加了服务引用 我的测试应用程序中的逻辑如下Web services 测试web服务中的持久或非持久连接,web-services,testing,connection-pooling,persistent-connection,Web Services,Testing,Connection Pooling,Persistent Connection,我有一个网络服务。我正在创建一个测试应用程序,以从该Web服务获取响应。向web服务应用程序添加了服务引用 我的测试应用程序中的逻辑如下 for(int i=0;i<100;i++) { MyServiceSoapClient wsClient = new MyServiceSoapClient(); wsClient.Endpoint.Address = new EndpointAddress(serverAddress); MyLoginResponse log
for(int i=0;i<100;i++)
{
MyServiceSoapClient wsClient = new MyServiceSoapClient();
wsClient.Endpoint.Address = new EndpointAddress(serverAddress);
MyLoginResponse loginResp=wsClient.Login("X","X");
}
for(int i=0;i使用测试您的web服务。传递-v
(verbose)标志。如果在响应头中看到连接:关闭
,则您的web服务不支持持久连接