Re: WebSvc Q

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Vai2000 (vai_at_onebox.com)
Date: 02/21/04


Date: Sat, 21 Feb 2004 09:31:48 -0500

Or perhaps I can retrieve the timeout value from webconfig

"Sami Vaaraniemi" <samivawantsnospam@jippii.fi> wrote in message
news:O7$RtoE%23DHA.1672@TK2MSFTNGP12.phx.gbl...
> Inline:
>
> "Vai2000" <vai@onebox.com> wrote in message
> news:Ob3Qa5A%23DHA.2636@TK2MSFTNGP09.phx.gbl...
> > Hi All, If I change the Proxy file (*.cs) generated by adding a web
> > reference do I need to recompile the project ? I had a situation in
which
> > one of my web application was timing out....so I went ahead and changed
> the
> > Proxy class to accommodate this.Timeout=90000; (more time for webservice
> to
> > respond back)
> > To my surprise the behavior re existed until I had to recompile the
entire
> > project and deploy the DLL along with WebReference Directory to the
> > Production Computer.
>
> Yes, you will have to recompile the project and redeploy. The web
reference
> proxy is just an ordinary .cs source file and changing it is no different
> from changing any other source file in the project. However, I don't think
> deploying the web reference directory is necessary.
>
> > Whz the best way to handle this kind of situations?
>
> Changing generated proxy code is usually a bad idea as you will lose the
> changes as soon as you regenerate the proxy. Instead of editing the proxy,
I
> would derive a subclass from the proxy class and provide a special
> constructor in the subclass that sets the timeout. Then your application
can
> use the subclass safely without having to worry about losing any changes
> because of regenerated proxies.
>
> Sami
> www.capehill.net
>
>



Relevant Pages

  • RE: Setting web service timeout in vb.net
    ... you can directly set this "Timeout" property on the ... client-side proxy. ... that your webservice proxy class is derived from "SoapHttpClientProtocol": ... It gives no specific directions and I could not find a ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Looking for Proxy that also monitors availability of a remote service
    ... > I'm in search of a proxy that gates access to a ... > remote web service and monitors the availability and response time of the ... > service so that client behind the proxy knows instantly that the service ... > processes on our side timeout and chew up sockets fruitlessly... ...
    (comp.security.firewalls)
  • Re: Controlling timeout, how?
    ... Reference" in VS.NET, right? ... you call methods of this proxy class. ... properties such as Url and Timeout. ... >> First you need to set the Timeout property of the web service proxy. ...
    (microsoft.public.dotnet.framework.webservices)
  • Blank URL/timeout log entries in proxy.
    ... getting constant entries saying 'blank URL' and 'Timeout'. ... 12:55:34 PROXY: 1288 Timeout in transfer. ...
    (microsoft.public.security)
  • Re: Controlling timeout, how?
    ... but how do I set the 'Timeout property of the web service ... >> before the webservice is done. ... > First you need to set the Timeout property of the web service proxy. ...
    (microsoft.public.dotnet.framework.webservices)