Re: Is soap client proxy that wsdl.exe generates thread safe?



Thank you Steven. I thought the same, but I just wanted to confirm. The web
service proxy is pure .net 2.0 generated proxy.


"Steven Cheng[MSFT]" <stcheng@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:x3n2xRAKIHA.1104@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi Max,

For the webservice proxy, I think it should be thread-safe as the .NET
generated proxy class is derived from the "SoapHttpClientProtocol" class
which is marked as thread-safe in document:

#SoapHttpClientProtocol Class
http://msdn2.microsoft.com/en-us/library/system.web.services.protocols.soaph
ttpclientprotocol(VS.71).aspx

therefore, it should be safe to use it in multi-thread context as long as
you haven't manually add any context-sensitive member in the derived proxy
class. Do you think so?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no
rights.








--------------------
From: "Max2006" <alanalan1@xxxxxxxxxxxxxxxx>
Subject: Is soap client proxy that wsdl.exe generates thread safe?
Date: Thu, 15 Nov 2007 13:25:51 -0500

Hi,



I have a static reference to a soap proxy at client side and I am concern
about its thread safety. All parts of the application are calling the same
web methods quite often. Is the code that wsdl.exe generates for web
service
client thread safe?



Thank you,

Max








.



Relevant Pages

  • RE: Is soap client proxy that wsdl.exe generates thread safe?
    ... For the webservice proxy, I think it should be thread-safe as the .NET ... generated proxy class is derived from the "SoapHttpClientProtocol" class ... web methods quite often. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: MSDiscoCodegenerator Failure with Java Axis
    ... webservice's WSDL document and the service proxy generation's code logic. ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Programmatically add Proxy to web request
    ... you might want to think about a server side change to ... service proxy to access your service, then this is another way to go.There ... Programmatically add Proxy to web request ...
    (microsoft.public.dotnet.framework.webservices)
  • What classes do I use to create a web proxy
    ... service proxy nor do I want to do anything with web services. ... timeout and the web server regularly exceeds this, ... So I need to create a lightweight proxy that can sit between the ... from persistent storage to the desktop application. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Programmatically add Proxy to web request
    ... I know that the WebService class has a Proxy property. ... I am trying to ensure that every request to the web application ... This makes the service proxy direct its ...
    (microsoft.public.dotnet.framework.webservices)