Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

  1. In folder ..\Terrasoft.WebApp\ServiceModel create file VvtTalkdeskChatWebhookHandler.svc and add the following code

    <% @ServiceHost Service = "Terrasoft.Configuration.VvtTalkdesk.Services.VvtTalkdeskChatWebhookHandler" Debug = "true" Language = "C#" %>

  1. In the files ..\Terrasoft.WebApp\ServiceModel\http\services.config and ..\Terrasoft.WebApp\ServiceModel\https\services.config add the following block <services>:

    <services>
        ...
        <service name="Terrasoft.Configuration.VvtTalkdesk.Services.VvtTalkdeskChatWebhookHandler">
            <endpoint name="VvtTalkdeskChatWebhookHandlerEndPoint"
                address=""
                binding="webHttpBinding"
                behaviorConfiguration="RestServiceBehavior"
                bindingNamespace="http://Terrasoft.WebApp.ServiceModel"
                contract="Terrasoft.Configuration.VvtTalkdesk.Services.VvtTalkdeskChatWebhookHandler"
            />
        </service>
    </services>

  2. In the file ..\Terrasoft.WebApp\Web.config add block<location> to section <configuration>:

    <configuration>
    ...
    <location path="ServiceModel/VvtTalkdeskChatWebhookHandler.svc">
        <system.web>
            <authorization>
                <allow users="*" />
            </authorization>
        </system.web>
    </location>
    ...
    </configuration>

  3. In the file ..\Terrasoft.WebApp\Web.config change  attribute 'value' in the section<appSettings>:

    <configuration>
    ...
    <appSettings>
    ...
        <add key="AllowedLocations" value="[previous values];ServiceModel/VvtTalkdeskChatWebhookHandler.svc" />
    ...
    </appSettings>
    ...
    </configuration>

  4. Reload the application in IIS

  • No labels