Is there a way to reference a web service from a .net 2.0 app without using a config file?
-
23-09-2022 - |
Pergunta
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.
Nenhuma solução correta
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow