Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Set up can be performed by the system administrator. If you are using the cloud version, please contact the Creatio support team to complete the set up.

  1. In folder ..\Terrasoft.WebApp\ServiceModel create file 

...

  1. VvtTwilioServiceHelperService.svc and add the following code

    Code Block
    <% @ServiceHost Service = "Terrasoft.Configuration.VvtTwilioServiceHelperNamespace.VvtTwilioServiceHelper" Debug = "true" Language = "C#" %>

  2. In the

...

  1. files ..\Terrasoft.WebApp\ServiceModel\http\services.config

...

  1. and ..\Terrasoft.WebApp\ServiceModel\https\services.config

...

  1. add the following block <services>:

    Code Block
    <services>
        ...
        

...

  1. <service name="Terrasoft.Configuration.VvtTwilioServiceHelperNamespace.VvtTwilioServiceHelper">
     

...

  1.        <endpoint name="VvtTwilioServiceHelperEndPoint"
       

...

  1.          address=""
                

...

  1. binding="webHttpBinding"
                

...

  1. behaviorConfiguration="RestServiceBehavior"
                

...

  1. bindingNamespace="http://Terrasoft.WebApp.ServiceModel"
     

...

  1.            contract="Terrasoft.Configuration.VvtTwilioServiceHelperNamespace.VvtTwilioServiceHelper"

...

  1. 
            />
     

...

  1.    </service>
    

...

  1. </services>

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

    Code Block
    <configuration>

...

  1. 
    

...

  1. ...
    

...

  1. <location path="ServiceModel/VvtTwilioServiceHelper.svc">
        

...

  1. <system.web>
       

...

  1.      <authorization>
                

...

  1. <allow users="*"

...

  1.  />
          

...

  1.   </authorization>
     

...

  1.    </system.web>
    

...

  1. </location>

...

  1. 
    

...

  1. ...

...

  1. 
    </configuration>

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

    Code Block
    <configuration>
    

...

  1. ...
    

...

  1. <appSettings>
    

...

  1. ...
        

...

  1. <add key="AllowedLocations"

...

  1.  value="[previous values];ServiceModel/VvtTwilioServiceHelper.svc"

...

  1.  />

...

  1. 
    

...

  1. ...
    

...

  1. </appSettings>
    

...

  1. ...

...

  1. 
    </configuration>

  2. Reload the application in IIS

Configuration for .Net6

  1. Add the following block to the AnonymousRoutes block of the appsettings.json file

Code Block
"Terrasoft.Configuration.VvtTwilioServiceHelperNamespace.VvtTwilioServiceHelper": [
        "/ServiceModel/VvtTwilioServiceHelper.svc"
]

Add label