Browser Javascript cannot to read HTTP Response Status and Text (using either XMLHttpRequest or Ajax Callback) (Doc ID 1995727.1)

Last updated on MARCH 02, 2017

Applies to:

Siebel CRM - Version 8.1.1 [21112] and later
Information in this document applies to any platform.

Symptoms

FUNCTIONALITY:
------------------------
Using browser side javascript code of Siebel UI Client to invoke external web service using AJAX javascript API and the "XMLHttpRequest" object.

Code examples:

  
* * *


ERROR:
-------------
The javascript does not return HTTP status code of the HTTP request (such as "200" for successfully completion) but just the "0"

 Also text of the response was not available - was returned as "" - empty string.

However network traces confirmed receipt of succesfull HTTP 200 response with correct HTTP Response body (payload).

EXPECTED:
-----------------
The HTTP response code and response text can be obtained in javascript running within Siebel Client page.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms