Implement Interface and Cast to Web Service?

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






I have an Interface compiled into a .dll, referenced in a VS.NET 2003
Web Service project. The default .asmx implements the Interface. All
of the Interface-defined methods return strings.

I have a WinForms client that also includes the Interface .dll in it's
compiler references.

I want to use the WinForms client to create a new instance of "foo"
that implements the Interface and dynamically cast foo to the web
service. Just to make things easy, I would like to at runtime specify
the URI of the web service so it can be put in a config file.

How can I do that?

Thanks.
.



Relevant Pages

  • Re: A question of design
    ... Shawn ... A DLL is a file. ... > You should always design your business classes without an interface (other ... The contractor has set up a web service so that I ...
    (microsoft.public.dotnet.framework.aspnet)
  • Interop within a web service
    ... I have a COM DLL that was created by Delphi that I am calling indirectly ... I unit test the .NET component and it works fine. ... make calls from within the web service, ... QueryInterface call on the COM component for the interface with IID ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Assembly.GetTypes Exception
    ... What i don't get is that the interface it says it can't load isn't used in the code being loaded. ... Are you sure your dll containing the interface you claim is being used is the same as the one being referenced? ... application references and uses code from dll A version 1 ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: object as parameter
    ... Interfaces Type Library Version 1.0" in the list of references. ... interface IDatabaseData: IDispatch ... I have a question on composing tlb at this point ... its similar to the issue with a dll and compatibility settings when you add ...
    (microsoft.public.vb.general.discussion)
  • Re: Update Web Reference - at run time
    ... If the interface designer "breaks" ... If the breakage is in the programming ... When the creator of your web service adds function, ... because new clients might not work with old servers. ...
    (microsoft.public.dotnet.xml)