Re: Calling a method on a webservice



"Scott Holman" <sholman@xxxxxxxxxx> wrote in message
news:OvLaPxscHHA.4864@xxxxxxxxxxxxxxxxxxxxxxx
As john pointed out the classes are not the same. If your using WCF it is
fairly easy to modify the generated proxy code and replace class
implementations. If you are using pre .net3.0 web services you may be
able to do something similar.

You need to modify the generated client proxy class and replace the
generated LogService.Window class with House.Window. You need to make
sure that your implementation of House.Window is decorated with the same
attributes as the class in the generated client proxy. After applying the
same attributes you then need to modify the generated client proxy class
to use House.Window instead of LogService.Window.

To my mind, it would be safer not to edit the proxy class, as it is a
generated class. Instead, yes, create a copy constructor.

John


.



Relevant Pages

  • Re: Thx and more details
    ... Definately sounds like you want to go with a proxy then. ... * If you want to modify the binaries look at some open source ... reflection API directly. ... >> I've written code like this and there are some examples in some MSDN ...
    (microsoft.public.dotnet.framework.clr)
  • Re: How to return a user-defined data type object from a webservice?
    ... I recommend naming web references with the word "Proxy" in the name, ... Also, Brad, if you're going to suggest that people modify the proxy class, ... John Saunders | MVP - Windows Server System - Connected System Developer ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Calling a method on a webservice
    ... implementations. ... You need to modify the generated client proxy class and replace the ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Inserting html/frame/banner to requested webpage by proxy/gateway
    ... I should imagine this is going to be used as a reverse proxy. ... Cody Baker ... Gunnarsson, Mikael wrote: ... If it's outgoing content you want to modify, it would probably be easier to let the web server itself add a header/footer or whatever it is you want to add. ...
    (freebsd-isp)
  • Re: How do I deploy a SOAP extension on the client proxy
    ... my proxy methods need to have the extension functionality. ... > soapExtension at clientside proxy is just like we do in asp.net server ... How do I deploy a SOAP extension on the client proxy ...
    (microsoft.public.dotnet.framework.webservices)