Author: jonathan Date: Thu Jul 17 11:28:09 2008 New Revision: 19429 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19429
Log: Returns more information on local (non SOAP Fault) errors when attempting to call the remote service. E.g. cert failures. Modified: trunk/mashup/java/modules/www/WSRequestXSSproxy.jsp Modified: trunk/mashup/java/modules/www/WSRequestXSSproxy.jsp URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/www/WSRequestXSSproxy.jsp?rev=19429&r1=19428&r2=19429&view=diff ============================================================================== --- trunk/mashup/java/modules/www/WSRequestXSSproxy.jsp (original) +++ trunk/mashup/java/modules/www/WSRequestXSSproxy.jsp Thu Jul 17 11:28:09 2008 @@ -189,10 +189,10 @@ OMNamespace ns = bodyElement.declareNamespace("http://wso2.org/ns/WSRequestXSS", "http"); bodyElement.addAttribute("h:status", "unknown error", ns); } - body = bodyElement.toString(); - } - } - } + body = bodyElement.toString(); + } else body = "<WSRequestXSSProxyError h:status='SOAP envelope error' xmlns:h='http://wso2.org/ns/WSRequestXSS'>" + axisFault.toString() + "</WSRequestXSSProxyError>"; + } else body = "<WSRequestXSSProxyError h:status='messageContext error' xmlns:h='http://wso2.org/ns/WSRequestXSS'>" + axisFault.toString() + "</WSRequestXSSProxyError>"; + } else body = "<WSRequestXSSProxyError h:status='axisFault' xmlns:h='http://wso2.org/ns/WSRequestXSS'>" + axisFault.toString() + "</WSRequestXSSProxyError>"; } /* _______________________________________________ Mashup-dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev
