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 ru...@apache.org on 2005/09/30 17:33:38 UTC
svn commit: r292773 -
/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
Author: ruchithf
Date: Fri Sep 30 08:33:32 2005
New Revision: 292773
URL: http://svn.apache.org/viewcvs?rev=292773&view=rev
Log:
Fix for Axis2-248 - The list of perations were created before iterating through the operations, therefore the headers of one operation was added to the next operation - changed it to create new lists of headers for each operation - simply moved them into the 'for' loop :D
Modified:
webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
Modified: webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java?rev=292773&r1=292772&r2=292773&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java (original)
+++ webservices/axis2/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java Fri Sep 30 08:33:32 2005
@@ -857,12 +857,14 @@
Collection col = boundInterface.getOperations().values();
String portTypeName = reformatName(boundInterface.getName().getLocalPart(),false);
- List soapHeaderInputParameterList = new ArrayList();
- List soapHeaderOutputParameterList = new ArrayList();
Element methodElement ;
WSDLOperation operation ;
for (Iterator iterator = col.iterator(); iterator.hasNext();) {
+
+ List soapHeaderInputParameterList = new ArrayList();
+ List soapHeaderOutputParameterList = new ArrayList();
+
operation = (WSDLOperation) iterator.next();
methodElement = doc.createElement("method");
String localPart = reformatName(operation.getName().getLocalPart(),false);