You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by he...@apache.org on 2006/04/13 20:08:23 UTC
svn commit: r393876 -
/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL2AxisServiceBuilder.java
Author: hemapani
Date: Thu Apr 13 11:08:19 2006
New Revision: 393876
URL: http://svn.apache.org/viewcvs?rev=393876&view=rev
Log:
all PolicyIncludes in operations must share a same registry, fixing it at the creation of Operation
Modified:
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL2AxisServiceBuilder.java
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL2AxisServiceBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL2AxisServiceBuilder.java?rev=393876&r1=393875&r2=393876&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL2AxisServiceBuilder.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL2AxisServiceBuilder.java Thu Apr 13 11:08:19 2006
@@ -358,7 +358,18 @@
String MEP = getMEP(wsdl4jOperation);
axisOperation = AxisOperationFactory.getOperationDescription(MEP);
axisOperation.setName(opName);
- }
+
+ //All policy includes must share same registry
+ PolicyInclude pi = axisOperation.getPolicyInclude();
+ if(pi == null){
+ pi = new PolicyInclude();
+ axisOperation.setPolicyInclude(pi);
+ }
+ pi.setPolicyRegistry(registry);
+ }
+
+
+
if (style != null) {
axisOperation.setStyle(style);
}
@@ -1382,4 +1393,4 @@
}
}
-}
\ No newline at end of file
+}