DX Operational Intelligence

Expand all | Collapse all

CA SOI rest call page giving error

Jump to Best Answer
  • 1.  CA SOI rest call page giving error

    Posted 12-12-2018 09:01 PM

    Hi Experts,

     

    I am getting below error when I am trying to connect to rest API using http://servername:7070//rest/alert/4503599635341545/action 

    HTTP Status 403 - Connection via this interface is not allowed

    type Status report

    message Connection via this interface is not allowed

    description Access to the specified resource has been forbidden.

     

     

    Error at the backend 

    <results error="Method failed: (/servicenow_service/rest/alert/4503599629088471/action/4644337115725838) with code: 403 - Forbidden username/password combo">
    <result>
    <output>
    <html><head><title>Apache Tomcat/7.0.77 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 403 - Connection via this interface is not allowed</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>Connection via this interface is not allowed</u></p><p><b>description</b> <u>Access to the specified resource has been forbidden.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.77</h3></body></html>
    </output>
    </result>

    We are using this Rest API call to close the alert in SOI from servicenow. 

     

    Regards

    Pratiman 



  • 2.  Re: CA SOI rest call page giving error
    Best Answer

    Posted 12-14-2018 07:14 AM

    Hi Pratiman,

     

    By default, the non-secure interface is not allowed with the Basic authentication (user name and password), where the user name and password are sent as a plain text ( Base64 encoded). If you want to allow Basic authentication over the non-secure connection, you can configure the web.xml file. You can always use the non-secure interface with other types of authentications: CA EEM token and JSESSION. However, you can use the secure interface with all three types of authentications: Basic (user name and password), CA EEM token, and JSESSION. For more information about these authentication methods, see the REST Web Services Authentication. 

     

    1) However, if you want to change this and allow basic authentication over non-secure (http), then update "\SOI\SamUI\webapps\rest\WEB-INF\web.xml" as mentioned below.

    =====================================================
    </description>
    <param-name>allowPlainCredentials</param-name>
    <param-value>false</param-value>
    </init-param>
    <init-param>
    <description>
    ======================================================

    Change the value from "false" to "true" and restart 'CA SOI UI Service' service

    2) Now, try accessing REST API with http
    http://servername:7070/rest/alert/4503599635341545/action

     

    Thanks

    Brahma