Question

In a .Net 2.0 COM application I am referencing a web service.

In COM components I want to use the Constructor String to store my end point address and deploy my component without any config file.

I see that when I create my web service reference that the endpoint is put all over the place in the various files that get created.

Ideally I would like to be able to programmatically configure my endpoint and not rely on the config at all. Is there any way to do this?

I am familiar with programmatically setting endpoints and bindings with WCF services, but as this is a .net 2.0 app, I am forced to go with an old style asmx / wsdl reference.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top