I have developed a plugin for NOP that references a WCF service. The WCF service DOES NOT reside on the same server as the NOPCommerce instance.
I keep getting the following error aafter I install the Plugin:
"Could not find endpoint element with name 'WSHttpBinding_IService1' and contract 'Tax.IService1' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element."
My app.config file looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IService1" />
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://##.##.##.##:PORT#/Service1.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IService1"
contract="Tax.IService1" name="WSHttpBinding_IService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>
I also added this configuration to the web.config file located in the Plugin Root:
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IService1" />
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://##.##.##.##:PORT#/Service1.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IService1"
contract="Tax.IService1" name="WSHttpBinding_IService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
I have masked the IP Address. So ignore that. :)
Is there something that I am missing? I cannot get this plugin to work with my WCF webservice.
Any help or guidance would be appreciated.
Thanks,
Greggory