肥皂服务客户问题 [英] Soap service client question

查看:62
本文介绍了肥皂服务客户问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,这是一个关于webservices的简短问题。我已经使用visual studio消耗了一个wsdl文件,该文件成功生成了所有对象和客户端类,我也选择了为该服务生成异步方法的选项。

Hello, just a short question about webservices. I've consumed a wsdl file with visual studio which successfully generated all the objects and client classes for it, i also chose the option to generate async methods for the service as well.

我的问题是...如果我创建2个不同的客户端类实例,然后使用2个线程,并在每个线程上我调用这个调用的
synchronus 版本:client .someMethod(),这两个调用实际上是同时执行和处理(几乎),还是先完成一个然后另一个启动? (似乎它们一个接一个地执行,而不是并行执行
,好像服务代理忙于处理首先出现的请求/响应)

My question is... if i create 2 different instances of the client class, and then use 2 threads, and on each of these threads i call a synchronus version of the call like this: client.someMethod(), do these 2 calls actually get executed and processed (almost) at the same time, or one finishes first and then the other starts? (it would seem that they execute one after another, not in parallel, as if the service proxy was busy dealing with the request/response that came in first)

因为如果它不会这样工作,我当然必须使用client.someMethodAsync();

Because if it doesn't work this way, i would of course have to use client.someMethodAsync();

推荐答案

你好U2ros,

Hi U2ros,

感谢您的发帖。

根据您的描述,我了解您的问题是关于WCF的。所以我将移动您的主题。

According to your description, I understand your issue is about WCF. So I'll move your thread.

您可以在WCF论坛中发布一个新主题:http://social.msdn.microsoft.com/Forums/en-US/wcf/threads /.

You can post a new thread in WCF forum:http://social.msdn.microsoft.com/Forums/en-US/wcf/threads/.

如果您有任何其他WCF问题,请将您的问题发布到WCF论坛,这样您就可以获得更好的解答。

If you have any else WCF questions, please post your issue to WCF forum, so that you can get a better hep.

谢谢为了你的理解。

祝你有愉快的一天。


这篇关于肥皂服务客户问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆