Versions Compared

Key

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

...

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

...

  1. Code Block
    <% @ServiceHost Service = "Terrasoft.Configuration.VvtTwilioServiceHelperNamespace.VvtTwilioServiceHelper"

...

  1.  Debug = "true"

...

  1.  Language = "C#"

...

  1.  %>

...

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

    Code Block
    <services>

...

  1. 
    
    ...

...

  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. 
    
        </service>

...

  1. 
    
    </services>

...

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

...

  1. <configuration>:

    Code Block
    <configuration>

...

  1. 
    
        ...

...

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

...

  1. 
    
            <system.web>

...

  1. 
    
                <authorization>

...

  1. 
    
                    <allow users="*" />

...

  1. 
    
                </authorization>

...

  1. 
    
            </system.web>

...

  1. 
    
        </location>

...

  1. 
    
        ...

...

  1. 
    
    </configuration>

...

  1. 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. 
    
        </appSettings>

...

  1. 
    
        ...

...

  1. 
    
    </configuration>

...

  1. Reload application in IIS