On 06/03/2008, Simon Robinson <[EMAIL PROTECTED]> wrote:
> I have a C# dll project which calls a web service. I need to be able to
> vary the URL used to call the web service *after* building the application
> (so I can deploy it with different deployed instances referring to
> different URLs). W
The dll is used in two ways: Referenced by a .NET .exe application, and
via COM interop from a Foxpro application.
But it looks like Stoyan has identified the solution - thanks Stoyan!
Turns out the .NET-generated web service proxy exposes a writeable Url
property so you can just programmatically
How is the proxy generated?If you are using wsdl.exe then the
/appsettingurlkey:%1 key is what you are after.The proxy then reads from the
[EMAIL PROTECTED]
> Date: Wed, 5 Mar 2008 11:16:22 -0500> From: [EMAIL PROTECTED]> Subject: Re:
> [ADVANCED-DOTNET] Dynamically changing web service URL>
How is your dll used?
Is it called/referenced by a .net .exe application?
-Original Message-
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Simon Robinson
Sent: Wednesday, March 05, 2008 10:22 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DO
Can't you just instantiate your proxy class and set the .Url property?
On Wed, Mar 5, 2008 at 5:22 PM, Simon Robinson <[EMAIL PROTECTED]> wrote:
> I have a C# dll project which calls a web service. I need to be able to
> vary the URL used to call the web service *after* building the application
I have a C# dll project which calls a web service. I need to be able to
vary the URL used to call the web service *after* building the application
(so I can deploy it with different deployed instances referring to
different URLs). When calling a web service from web or .exe apps, that's
easy - ju