Versions Compared

Key

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

...

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

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

  1. 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. <location path="ServiceModel/VvtTwilioServiceHelper.svc">
        

...

  1. <system.web>
     

...

  1.        <authorization>
                

...

  1. <allow users="*"

...

  1.  />
     

...

  1.        </authorization>
      

...

  1.   </system.web>
    

...

  1. </location>
    

...

  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