ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r189736 - /webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis/wsdl/builder/wsdl4j/WSDLPump.java
Date Thu, 09 Jun 2005 09:53:51 GMT
Author: chathura
Date: Thu Jun  9 02:53:50 2005
New Revision: 189736

URL: http://svn.apache.org/viewcvs?rev=189736&view=rev
Log:
BUg fix in WSDL parsing. JIRA issue AXIS2-25

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=189736&r1=189735&r2=189736&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
Thu Jun  9 02:53:50 2005
@@ -432,25 +432,28 @@
 									wsdl4jBindingOperation.getName()));
 		BindingInput wsdl4jInputBinding = 
 			wsdl4jBindingOperation.getBindingInput();
-		WSDLBindingMessageReference wsdlInputBinding = 
-			this.wsdlComponenetFactory.createWSDLBindingMessageReference();
-		wsdlInputBinding.setDirection(WSDLConstants.WSDL_MESSAGE_DIRECTION_IN);
-		//TODO Faults
-		this.copyExtensibleElements(wsdl4jInputBinding.getExtensibilityElements(), 
-								wsdlInputBinding);
-		wsdlBindingOperation.setInput(wsdlInputBinding);
-		
+		if(null != wsdl4jInputBinding){
+			WSDLBindingMessageReference wsdlInputBinding = 
+				this.wsdlComponenetFactory.createWSDLBindingMessageReference();
+			wsdlInputBinding.setDirection(WSDLConstants.WSDL_MESSAGE_DIRECTION_IN);
+			//TODO Faults
+			this.copyExtensibleElements(wsdl4jInputBinding.getExtensibilityElements(), 
+									wsdlInputBinding);
+			wsdlBindingOperation.setInput(wsdlInputBinding);
+		}
 
 		BindingOutput wsdl4jOutputBinding = wsdl4jBindingOperation
 				.getBindingOutput();
-		WSDLBindingMessageReference wsdlOutputBinding = this.wsdlComponenetFactory
-				.createWSDLBindingMessageReference();
-
-		wsdlInputBinding.setDirection(WSDLConstants.WSDL_MESSAGE_DIRECTION_OUT);
-		//TODO Faults
-		this.copyExtensibleElements(wsdl4jOutputBinding.getExtensibilityElements(), 
-								wsdlOutputBinding);
-		wsdlBindingOperation.setOutput(wsdlOutputBinding);
+		if(null != wsdl4jOutputBinding){
+			WSDLBindingMessageReference wsdlOutputBinding = this.wsdlComponenetFactory
+					.createWSDLBindingMessageReference();
+	
+			wsdlOutputBinding.setDirection(WSDLConstants.WSDL_MESSAGE_DIRECTION_OUT);
+			//TODO Faults
+			this.copyExtensibleElements(wsdl4jOutputBinding.getExtensibilityElements(), 
+									wsdlOutputBinding);
+			wsdlBindingOperation.setOutput(wsdlOutputBinding);
+		}
 
 	}
 



Mime
View raw message