简体   繁体   中英

Getting the Binding and URI in a WCF third party application

Hello I am working in a 3rd party application (Epicor), writing custom code to interface with it.

A class that I need to instantiate requires the Binding and URI for the constructor. I have not been able to find any kind of functionality available to me to get that info from the 3rd party application.

The custom code I am writing will be run within the 3rd party software and is not a separate assembly. IE the code gets built within the software's own assembly's'.

Is there any way to get/query the current Binding and URI so I can instantiate the class?

Edit: I do have access to the web.config. The software also makes use of custom bindings.

Epicor has a convention for instantiating a call to a service. You generally only really need to do this in the application if you are doing something below the adapter level in a client customization, which is generally not the best way to go about things, or if you want to call business object methods in a BPM that is NOT the business object the BPM is called from.

Perhaps if you were a bit more specific (Version of Epicor, Exactly what you are trying to do, etc) I could assist bit more specifically.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM