You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by xu...@apache.org on 2011/04/28 16:11:16 UTC

svn commit: r1097466 - /geronimo/bundles/trunk/axis2/src/main/java/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java

Author: xuhaihong
Date: Thu Apr 28 14:11:16 2011
New Revision: 1097466

URL: http://svn.apache.org/viewvc?rev=1097466&view=rev
Log:
Use the method from Neethi to determine whether current extension element is a Policy element

Modified:
    geronimo/bundles/trunk/axis2/src/main/java/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java

Modified: geronimo/bundles/trunk/axis2/src/main/java/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/bundles/trunk/axis2/src/main/java/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java?rev=1097466&r1=1097465&r2=1097466&view=diff
==============================================================================
--- geronimo/bundles/trunk/axis2/src/main/java/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java (original)
+++ geronimo/bundles/trunk/axis2/src/main/java/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java Thu Apr 28 14:11:16 2011
@@ -3103,7 +3103,7 @@ public class WSDL11ToAxisServiceBuilder 
 
             if (extElement instanceof UnknownExtensibilityElement) {
                 unknown = (UnknownExtensibilityElement) extElement;
-                if (WSDLConstants.WSDL11Constants.POLICY.equals(unknown.getElementType())) {
+                if (Constants.isPolicyElement(unknown.getElementType())) {
 
                     policy = (Policy) PolicyUtil.getPolicyComponent(unknown.getElement());
                     String key;