svn commit r19430 - trunk/wsf/javascript/native/src

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

svn commit r19430 - trunk/wsf/javascript/native/src

Jonathan Marsh-2
Author: jonathan
Date: Thu Jul 17 11:29:07 2008
New Revision: 19430
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19430

Log:
Update to consume local WSRequestXSSProxy errors even when using SOAP.

Modified:
   trunk/wsf/javascript/native/src/WSRequest.js

Modified: trunk/wsf/javascript/native/src/WSRequest.js
URL: http://wso2.org/svn/browse/wso2/trunk/wsf/javascript/native/src/WSRequest.js?rev=19430&r1=19429&r2=19430&view=diff
==============================================================================
--- trunk/wsf/javascript/native/src/WSRequest.js (original)
+++ trunk/wsf/javascript/native/src/WSRequest.js Thu Jul 17 11:29:07 2008
@@ -295,19 +295,18 @@
         thisRequest.responseText = responseText;
         thisRequest.responseXML = response;
 
-        if (thisRequest._soapVer == 0) {
-            if (response != null) {
-                var httpStatus;
-                if (browser == "ie" || browser == "ie7") {
-                    httpStatus = response.documentElement.getAttribute("h:status");
-                } else {
-                    httpStatus = response.documentElement.getAttributeNS("http://wso2.org/ns/WSRequestXSS", "status");
-                }
-                if (httpStatus != null && httpStatus != '') {
-                    thisRequest.error = new WebServiceError("HTTP " + httpStatus, responseText);
-                }
+        if (response != null) {
+            var httpStatus;
+            if (browser == "ie" || browser == "ie7") {
+                httpStatus = response.documentElement.getAttribute("h:status");
+            } else {
+                httpStatus = response.documentElement.getAttributeNS("http://wso2.org/ns/WSRequestXSS", "status");
             }
-        } else {
+            if (httpStatus != null && httpStatus != '') {
+                thisRequest.error = new WebServiceError(httpStatus, responseText);
+            }
+        }
+        if (thisRequest._soapVer != 0) {
 
             if (response != null) {
                 var soapNamespace;

_______________________________________________
Wsf-javascript-dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/wsf-javascript-dev
Loading...