I'm working with Service References, and I want to configure the dynamic endpoint.
The settings below wanted to do within the source, not necessarily it within the web.config or app.config
This is possible or is a bad practice?
Config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="ProdutosCadastroSoap" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://app.omie.com.br/api/v1/geral/produtos/"
binding="basicHttpBinding" bindingConfiguration="ProdutosCadastroSoap"
contract="omieWS.Produto.ProdutosCadastroSoap" name="ProdutosCadastroSoap" />
</client>
</system.serviceModel>
</configuration>