Partial proxy class Visual Studio 2005/C#

Discussion in 'ASP .Net Web Services' started by roberto, Oct 3, 2006.

  1. roberto

    roberto Guest

    While adding a web service reference to a project there are no C#
    classes generated in the design time. This makes extending a web
    service quite complicated because when I try to add a partial class the
    program stops to compile.

    I know it can be done by removing a web reference and generating the
    proxy class manually - then extending it, but it denies automatic
    project management of VS 2005 (as the web reference has to be updated
    quite often).

    So may be there is another way of extending a web proxy? What I need is
    to overwrite GetWebRequest so it sets KeepAlive to false (I'm dealing
    with "established connection has beed closed issue").

    Any suggestions? Thanks!
     
    roberto, Oct 3, 2006
    #1
    1. Advertising

  2. "roberto" <> wrote in message
    news:...
    > While adding a web service reference to a project there are no C#
    > classes generated in the design time. This makes extending a web
    > service quite complicated because when I try to add a partial class the
    > program stops to compile.
    >
    > I know it can be done by removing a web reference and generating the
    > proxy class manually - then extending it, but it denies automatic
    > project management of VS 2005 (as the web reference has to be updated
    > quite often).
    >
    > So may be there is another way of extending a web proxy? What I need is
    > to overwrite GetWebRequest so it sets KeepAlive to false (I'm dealing
    > with "established connection has beed closed issue").
    >
    > Any suggestions? Thanks!


    Is the proxy class sealed? Can you inherit from it?

    John
     
    John Saunders, Oct 3, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ad
    Replies:
    5
    Views:
    1,622
  2. C.Batt
    Replies:
    6
    Views:
    2,026
    Brock Allen
    May 2, 2005
  3. Billy
    Replies:
    2
    Views:
    528
    Billy
    Feb 1, 2006
  4. rockdale
    Replies:
    1
    Views:
    702
    Juan T. Llibre
    Aug 23, 2006
  5. Replies:
    1
    Views:
    503
Loading...

Share This Page