문제

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.

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top