[commons-dev] Fault handling in native WSRequest.

saminda's picture
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Jonathan, In native WSRequest object's body handling in, WSRequest.prototype._processResult = function () { } in line 168, var soapBody = response.getElementsByTagName(soapPrefix + "Body")[0]; if (soapBody.hasChildNodes()) Prior "if" statement would fail if server response with a 202 OK without a HTTP body. Wouldn't it safer to check the httpstatus first and then check for soap body. If the response body is empty, should the resulting responseText be "" and responseXML be an empty element rather being NULL. Thank you Saminda -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGXbflYmklbLuW6wYRAgRTAKDOpHChLFVBxW0gESXCGKOBRIOpcgCeK2EA 2/n6/jN1ngmM3u7khc7qMa4= =yjHP -----END PGP SIGNATURE----- _______________________________________________ Commons-dev mailing list Commons-dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/commons-dev
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)