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 ch...@apache.org on 2005/06/11 08:42:50 UTC

svn commit: r190085 - /webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/wsdl4j/WSDLPump.java

Author: chathura
Date: Fri Jun 10 23:42:50 2005
New Revision: 190085

URL: http://svn.apache.org/viewcvs?rev=190085&view=rev
Log:
Adding the Extension Attrebutes.

Modified:
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/wsdl4j/WSDLPump.java

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/wsdl4j/WSDLPump.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/wsdl4j/WSDLPump.java?rev=190085&r1=190084&r2=190085&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/wsdl4j/WSDLPump.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/wsdl4j/WSDLPump.java Fri Jun 10 23:42:50 2005
@@ -108,6 +108,7 @@
 		wsdlDefinition.setWSDL1DefinitionName(wsdl4JDefinition.getQName());
 		wsdlDefinition
 				.setTargetNameSpace(wsdl4JDefinition.getTargetNamespace());
+		this.copyExtensibleElements(wsdl4JDefinition.getExtensibilityElements(), wsdlDefinition);		
 
 		/////////////////////////////////////////////////////////////////////
 		// Order of the following items shouldn't be changed unless you //
@@ -133,7 +134,7 @@
 			
 			
 			this.copyExtensibleElements(wsdl4jTypes.getExtensibilityElements(),
-					wsdlTypes);
+					wsdlTypes);			
 
 			this.womDefinition.setTypes(wsdlTypes);
 		}
@@ -151,6 +152,8 @@
 			wsdlInterface = this.wsdlComponenetFactory.createInterface();
 			portType = (PortType) portTypeIterator.next();
 			this.populateInterfaces(wsdlInterface, portType);
+			this.copyExtensibilityAttribute(portType.getExtensionAttributes(), 
+					wsdlInterface);
 			wsdlDefinition.addInterface(wsdlInterface);
 		}
 
@@ -168,7 +171,7 @@
 			wsdl4jBinding = (Binding) bindingIterator.next();
 			this.populateBindings(wsdlBinding, wsdl4jBinding);
 			this.copyExtensibleElements(wsdl4jBinding.getExtensibilityElements(), 
-										wsdlBinding);
+										wsdlBinding);			
 			wsdlDefinition.addBinding(wsdlBinding);
 
 		}
@@ -219,7 +222,8 @@
 			this.populateOperations(wsdloperation,
 								wsdl4jOperation, 
 								wsdl4jPortType.getQName().getNamespaceURI());
-			wsdlInterface.setOperation(wsdloperation);
+			this.copyExtensibleElements(wsdl4jOperation.getExtensibilityElements(), wsdloperation);			
+			wsdlInterface.setOperation(wsdloperation);			
 		}
 	}
 
@@ -304,6 +308,8 @@
 				(wsdl4jInputMessage.getMessage()).getExtensibilityElements(), 
 				wsdlInputMessage
 				);
+		this.copyExtensibilityAttribute(wsdl4jInputMessage.getExtensionAttributes(), 
+				wsdlInputMessage);
 		wsdlOperation.setInputMessage(wsdlInputMessage);
 		
 
@@ -319,6 +325,8 @@
 				(wsdl4jOutputMessage.getMessage()).getExtensibilityElements(),
 				wsdlOutputMessage
 				);
+		this.copyExtensibilityAttribute(wsdl4jOutputMessage.getExtensionAttributes(), 
+				wsdlOutputMessage);
 		wsdlOperation.setOutputMessage(wsdlOutputMessage);
 		
 		
@@ -460,7 +468,7 @@
 	public void populatePorts(WSDLEndpoint wsdlEndpoint, Port wsdl4jPort,
 			String targetNamspace) {
 		wsdlEndpoint.setName(new QName(targetNamspace, wsdl4jPort.getName()));
-
+		
 		wsdlEndpoint.setBinding(this.womDefinition.getBinding(wsdl4jPort
 				.getBinding().getQName()));