geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r530156 - /geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java
Date Wed, 18 Apr 2007 21:05:03 GMT
Author: dims
Date: Wed Apr 18 14:05:01 2007
New Revision: 530156

URL: http://svn.apache.org/viewvc?view=rev&rev=530156
Log:
i see handler-chain under some conditions getting passed in, so let's try that as fallback

Modified:
    geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java?view=diff&rev=530156&r1=530155&r2=530156
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java
(original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java
Wed Apr 18 14:05:01 2007
@@ -28,6 +28,7 @@
 import org.apache.geronimo.jaxws.client.JAXWSServiceReference;
 import org.apache.geronimo.xbeans.javaee.HandlerChainsDocument;
 import org.apache.geronimo.xbeans.javaee.HandlerChainsType;
+import org.apache.xmlbeans.XmlException;
 
 import javax.xml.namespace.QName;
 import javax.xml.ws.handler.HandlerResolver;
@@ -55,7 +56,11 @@
         HandlerChainsType types = null;
         try {
             if (this.handlerChainsXML != null){
-                types = HandlerChainsDocument.Factory.parse(this.handlerChainsXML).getHandlerChains();
+                try {
+                    types = HandlerChainsDocument.Factory.parse(this.handlerChainsXML).getHandlerChains();
+                } catch (XmlException e){
+                    types = HandlerChainsType.Factory.parse(this.handlerChainsXML);
+                }
             }
         } catch (Exception e) {
             log.warn("Failed to deserialize handler chains", e);



Mime
View raw message