You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by aj...@apache.org on 2006/03/06 06:51:05 UTC
svn commit: r383473 -
/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java
Author: ajith
Date: Sun Mar 5 21:51:03 2006
New Revision: 383473
URL: http://svn.apache.org/viewcvs?rev=383473&view=rev
Log:
Fixed a minor issue in building the WOM binding
Modified:
webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java
Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java?rev=383473&r1=383472&r2=383473&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java (original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/builder/wsdl4j/WSDLPump.java Sun Mar 5 21:51:03 2006
@@ -429,9 +429,23 @@
this.wsdlComponentFactory.createWSDLBindingOperation();
wsdl4jBindingOperation =
(BindingOperation) bindingoperationsIterator.next();
+
+ //for the namespace we should pick the namespace from the porttype
+ //not the binding since the portyype can be imported and then the
+ //namespaces of the binding and porttype can differ
+
+ PortType portType = wsdl4JBinding.getPortType();
+ String namespaceURI = "";
+ if (portType!=null){
+ namespaceURI = portType.getQName().getNamespaceURI();
+ }else{
+ namespaceURI = wsdl4JBinding.getQName().getNamespaceURI();
+ }
+
this.populateBindingOperation(wsdlBindingOperation,
wsdl4jBindingOperation,
- wsdl4JBinding.getQName().getNamespaceURI(), wsdl4jDefinition);
+ namespaceURI,
+ wsdl4jDefinition);
wsdlBindingOperation.setOperation(
wsdlInterface.getOperation(
wsdl4jBindingOperation.getOperation().getName()));