Jopseph, that's a very bad idea. The proxy class is generated code. As
Quote:
soon as Update Web Reference is used, any edits are destroyed.
Of course, this is the obvious caveat. Whatever generated the proxy in the
first place is going to re-generate it when the reference is refreshed.
Whether or not this is a 'bad idea' would depend on the context in which
it's being used. There are other ways to approach this issue. However
(contrary to your assertion) this possibility exits. I'd allow developers
with more knowledge regarding their perticular scenario to decide for
themselves whether or not it is a 'bad idea' for their specific situation.
Your resistance to this approach doesn't seem quite consistent with your
previously stated distaste for 'magically generated' wired-up
infrastructure - the 'training wheels' as you so eloquently describe it. The
bottom line is, if you're willing to put some edits in place, this can be a
workable solution. Especially, once you get your Web Service interface
locked down, and are no longer updating Web References with any degree of
frequency.
- Joseph Geretz -
"John Saunders" <john.saunders at trizetto.comwrote in message
news:e4ePnLOWHHA.1200@TK2MSFTNGP02.phx.gbl...
Quote:
"Joseph Geretz" <jgeretz@nospam.comwrote in message
news:%23wyeTyIWHHA.3592@TK2MSFTNGP03.phx.gbl...
Quote:
>Hi Joe,
>>
>Have a look at the sample project which I posted to Josh's topic 'Sharing
>web-service class between two local assemblies'. Basically, you can
>simply edit the generated proxy to use your desired class definition,
>rather than its own class definition whch is created by default.
>
Jopseph, that's a very bad idea. The proxy class is generated code. As
soon as Update Web Reference is used, any edits are destroyed.
>
>
John
>
>