Developer forum

Forum » Integration » Connecting to Nav via DynamicwebService in TestTool

Connecting to Nav via DynamicwebService in TestTool

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hi, 

I'm trying to connect to a local ConnectorService which is configured to connect to Nav.

The service is running, and uses account that has acces to the folder and it can read the config.

I get the following message: An error occurred processing the request. Exception: Cannot find a type of: 'Dynamicweb.Ecommerce.Integration.Connectors.Nav.NavDynamicwebService' in the folder: 'C:\Projects\DynamicWeb\_ConnectorService\'

The AppSetting of the ConnectorService are:

Any help is much appreciated.

Justin


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Justin,
it looks like you are using wrong config file settings in the Dynamicweb Connector Service folder.
The connector type is wrong and it needs to be:
    <add key="ConnectorType" value="Dynamicweb.Ecommerce.Integration.Connectors.Nav.NavConnector"/>

Try to check your settings so they looks like that:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="NavConnector" type="System.Configuration.NameValueSectionHandler"/>    
  </configSections>    
  <NavConnector>
    <add key="UserName" value="yourUserName" />
    <add key="Password" value="password" />
    <add key="Domain" value="yourDomain" />
    <add key="NavEndpoint" value="" />
    <!-- Set IgnoreCertificateWarnings to true for https endpoints using self-signed or untrusted certificates. Useful for testing. Should be avoided in production. -->
    <add key="IgnoreCertificateWarnings" value="True" />
    <!-- Valid options for ClientCredentialType are: Default, Ntlm, Windows, Basic -->
    <add key="ClientCredentialType" value="Ntlm"/>
  </NavConnector>    
  <appSettings>
    <add key="ServiceName" value="DynamicwebService" />
    <add key="TestMode" value="False" />    
<add key="TestOutputFolder" value="d:\test" />
    <add key="Secret" value="someText" />
    <add key="DebugInfo" value="True"/>
    <add key="WebserviceURI" value="http://localhost:8095/DynamicwebService"/>
    <add key="ConnectorType" value="Dynamicweb.Ecommerce.Integration.Connectors.Nav.NavConnector"/>
  </appSettings>  
</configuration>

Also you will need to restart the Dynamicweb service after making the changes in its config file.

BR, Dmitrij
Votes for this answer: 1
 
Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hi Dmitrij,

Thanks, that solved my problem.

Maybe the documentation can be tweaked a little bit here, on this page: https://doc.dynamicweb.com/documentation-9/integration/integration-framework-2/dynamicweb-connector-service

All settings are explained for each connector but the full namespaces are not included. I ended up using DotPeek and got to the wrong namespace.

It could save some time if the options are described in the AppSettings table for the ConnectorType setting

Do you by any chance also know how to solve this: https://doc.dynamicweb.com/forum/integration?ThreadID=79244 

Tried to install the ConnectorTesttool to several different workstations, and nowhere do the Connectors show up in the DropDown box.

Thanks,

Justin

 

You must be logged in to post in the forum