Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Modify acad.exe.config to contain WCF endpoint address

0 REPLIES 0
Reply
Message 1 of 1
HerinkJ
448 Views, 0 Replies

Modify acad.exe.config to contain WCF endpoint address

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

Tags (2)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost