3
Gentlemen, I have a layered application. In the business layer App.config I had to add the following code:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="AtendeClienteServiceSoapBinding">
<security mode="Transport" />
</binding>
<binding name="AtendeClienteServiceSoapBinding1" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://apps.correios.com.br/SigepMasterJPA/AtendeClienteService/AtendeCliente"
binding="basicHttpBinding" bindingConfiguration="AtendeClienteServiceSoapBinding"
contract="WebServiceCorreios.AtendeCliente" name="AtendeClientePort" />
</client>
</system.serviceModel>
It turns out that when I build the application the App.Config file of the GUI layer is being used.
I would like to use the class I created for Webservice to run several other projects without having to change the App.Config every time I reuse this class.
Is there any way that the application does not use the App.Config of the project set as "Startup Project" and yes of the project that contains the Webservice class?
Thank you Randrade, also agree on the generation of future problems. I will think more about it and post an issue on how I will solve. Thank you again very much.
– Robss70