Re: WebSvc Q
From: Vai2000 (vai_at_onebox.com)
Date: 02/21/04
- Next message: Ray Martin: "HELP: Problem sending EMAIL"
- Previous message: Sami Vaaraniemi: "Re: WebSvc Q"
- In reply to: Sami Vaaraniemi: "Re: WebSvc Q"
- Messages sorted by: [ date ] [ thread ]
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
>
>
- Next message: Ray Martin: "HELP: Problem sending EMAIL"
- Previous message: Sami Vaaraniemi: "Re: WebSvc Q"
- In reply to: Sami Vaaraniemi: "Re: WebSvc Q"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|