You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2008/04/15 08:27:58 UTC
svn commit: r648124 -
/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java
Author: ruwan
Date: Mon Apr 14 23:27:55 2008
New Revision: 648124
URL: http://svn.apache.org/viewvc?rev=648124&view=rev
Log:
Fixing the issue SYNAPSE-267, there was a conceptual change in the behavior of the WSDLToServiceBuilder and now we have fixed Synapse to act as before.
Modified:
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java
Modified: synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java?rev=648124&r1=648123&r2=648124&view=diff
==============================================================================
--- synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java (original)
+++ synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java Mon Apr 14 23:27:55 2008
@@ -330,26 +330,12 @@
}
}
proxyService = wsdlToAxisServiceBuilder.populateService();
- proxyService.setWsdlFound(true);
- if (isWSDL11) {
-
- // workaround to support WSDL 2.0 generation when only a WSDL 1.1
- // is supplied
- Collection endpoints = proxyService.getEndpoints().values();
- for (Object ep : endpoints) {
-
- AxisEndpoint endpoint = (AxisEndpoint) ep;
- Iterator children = endpoint.getBinding().getChildren();
-
- while (children.hasNext()) {
- AxisBindingOperation axisBindingOperation =
- (AxisBindingOperation) children.next();
- axisBindingOperation.setProperty(
- WSDL2Constants.ATTR_WHTTP_IGNORE_UNCITED, Boolean.FALSE);
- }
- }
- }
+ // this is to clear the bindinigs and ports already in the WSDL so that the
+ // service will generate the bindings on calling the printWSDL otherwise
+ // the WSDL which will be shown is same as the original WSDL except for the
+ // service name
+ proxyService.getEndpoints().clear();
} else {
handleException("Unknown WSDL format.. not WSDL 1.1 or WSDL 2.0");