cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/3] cxf git commit: [CXF-6167] Added ability to specify a function for parsing parsing error details from failed SOAP response This closes #47
Date Fri, 19 Dec 2014 18:54:18 GMT
[CXF-6167] Added ability to specify a function for parsing parsing error details from failed
SOAP response
This closes #47


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/67305480
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/67305480
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/67305480

Branch: refs/heads/3.0.x-fixes
Commit: 673054808121de3f4911fe8b25cbd1333db3be55
Parents: 4ea7db8
Author: Andrii Nikitiuk <demonshi.ua@gmail.com>
Authored: Fri Dec 19 16:21:33 2014 +0200
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Fri Dec 19 13:54:07 2014 -0500

----------------------------------------------------------------------
 .../apache/cxf/javascript/service/ServiceJavascriptBuilder.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/67305480/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/service/ServiceJavascriptBuilder.java
----------------------------------------------------------------------
diff --git a/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/service/ServiceJavascriptBuilder.java
b/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/service/ServiceJavascriptBuilder.java
index 53bee3b..0ad4f67 100755
--- a/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/service/ServiceJavascriptBuilder.java
+++ b/rt/javascript/javascript-rt/src/main/java/org/apache/cxf/javascript/service/ServiceJavascriptBuilder.java
@@ -420,8 +420,12 @@ public class ServiceJavascriptBuilder extends ServiceModelVisitor {
         utils.appendLine(" httpStatus = -1;");
         utils.appendLine(" httpStatusText = 'Error opening connection to server';");
         utils.appendLine("}");
+        utils.startIf("client.parseErrorDetails");
+        utils.appendLine("client.user_onerror(httpStatus, httpStatusText, client.parseErrorDetails(this));");
+        utils.appendElse();
         utils.appendLine("client.user_onerror(httpStatus, httpStatusText);");
         utils.endBlock();
+        utils.endBlock();
         code.append("}\n\n");
         code.append(currentInterfaceClassName + ".prototype."
                     + errorFunctionPropertyName


Mime
View raw message