I have a dll that I am bundling into AutoCAD. I am wanting to call a WCF service from this dll. However, when consuming WCF services in a dll the endpoint address must be in the calling application's exe.config file. So to allow these dll's consuming these WCF web services I needed to include the endpoint binding in the acad.exe.config file. I added this entry as the last child of my acad.exe.config file:
<configuration>
** existing things **
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IEngrSysPackageAdapter" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:1096/EngrSysPackageAdapter.EngrSysPackageAdapterService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IEngrSysPackageAdapter" contract="EngrSysPackageAdapterProxy.IEngrSysPackageAdapter" name="BasicHttpBinding_IEngrSysPackageAdapter" />
</client>
</system.serviceModel>
</configuration>
This works perfectly in my testing; I will change localhost to point to web server don't worry. Will this cause any issues or conflicts within AutoCAD or somewhere else that I have not thought of? Or is this perfectly okay?
Let me know, Thanks