RE: Using dynamic url changes generated proxy

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Lguger (Lguger_at_discussions.microsoft.com)
Date: 09/20/04


Date: Mon, 20 Sep 2004 14:31:03 -0700

The solution, as it turns out, was to simply update the web reference in the
project after cahnging the url to dynamic and the WSE classes were back. So
simple... <sigh>

"lguger" wrote:

> To clarify:
>
> I am changing the URL behaviour on the web reference properties from within
> Visual Studio's Solution Explorer and not actually touching the code. After
> the property is changed in solution explorer Studio regenerates the code and
> the newly generated code no longer contains the wse specific class.
>
> Larry
>
> "Dominick Baier" wrote:
>
> > a general advice:
> >
> > leave the generated classes untouched. if you want to customize the proxy in any way, inherit from the proxy and to your customisation there.
> >
> > use the inherited class in your app to call the webservice.
> >
> > in this way you can modify the proxy behaviour (e.g. reading some values from config files,add properties...) and can always regenerate the web proxy without loosing your changes...
> >
> >
> >
> > ---
> > Dominick Baier - DevelopMentor
> > http://www.leastprivilege.com
> >
> > nntp://news.microsoft.com/microsoft.public.dotnet.framework.webservices.enhancements/<58965B43-293D-4119-B948-1EA0D13FBEAA@microsoft.com>
> >
> > I am using WSE 2.0 sp1 and have several web-references to webservices in my
> > project. Using the web-reference property pages I changed the URL behaviour
> > from static to dynamic and now the classes that end with wse are no longer
> > generated.
> >
> > I am using Visual Studio .NET 2003 and running XP Pro SP1.
> >
> > Has anyone run across this problem? Better yet does anyone have a solution?
> >
> > Larry
> > larry dot guger at online dash can dot com.
> >
> > [microsoft.public.dotnet.framework.webservices.enhancements]
> >



Relevant Pages

  • Re: found response content application/dime, but expected text/xml
    ... then keep expanding the tree view under your web reference and you'll see ... > Microsoft.Web.Services.WebServicesClientProtocol class in WSE. ... the client Web service proxy generated for the ImageService ... Where and how do I modify the proxy class? ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Webservice Security Header error
    ... I've built this using MS WSE 2.0 SP3 in VS.NET. ... I've also created a Windows Form application which acts as a client to the webservice. ... this is the URL used to create a web reference for the client. ... Before deploying the webservice it resided on my local machine, I tested it here using the local URL as the web reference. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • WSE 3.0 Proxy
    ... Little confused with WSE 3.0. ... I created a ASP.NET webservice using VS2005 ... but when I added the web reference in my web site I did not see any proxy ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Proxy for WSE enabled web service
    ... Use wsewsdl2.exe or Add Web Reference to do it. ... Make sure you have enabled WSE SOAP Extensions in the Config Dialog on ... WSDL File. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Using dynamic url changes generated proxy
    ... I am using WSE 2.0 sp1 and have several web-references to webservices in my ... Using the web-reference property pages I changed the URL behaviour ... larry dot guger at online dash can dot com. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)