butek 2002/09/25 09:35:34 Modified: java/src/org/apache/axis/i18n resource.properties java/src/org/apache/axis/message RPCHandler.java Log: Fixed http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12758 (thanks, Rich). Revision Changes Path 1.7 +2 -0 xml-axis/java/src/org/apache/axis/i18n/resource.properties Index: resource.properties =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/i18n/resource.properties,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- resource.properties 24 Sep 2002 20:45:20 -0000 1.6 +++ resource.properties 25 Sep 2002 16:35:33 -0000 1.7 @@ -1029,3 +1029,5 @@ badMsgMethodParams=Method ''{0}'' does not match any of the valid signatures for message-style service methods unmatchedOp=Binding operation has no corresponding portType operation: name = {0}, input name = {1}, output name = {2} + +noParmDesc=operation description is missing parameter description! 1.65 +7 -2 xml-axis/java/src/org/apache/axis/message/RPCHandler.java Index: RPCHandler.java =================================================================== RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/RPCHandler.java,v retrieving revision 1.64 retrieving revision 1.65 diff -u -r1.64 -r1.65 --- RPCHandler.java 18 Sep 2002 16:10:28 -0000 1.64 +++ RPCHandler.java 25 Sep 2002 16:35:33 -0000 1.65 @@ -213,12 +213,17 @@ // by position if we've already looked something up // by name? I think so... if (paramDesc == null) { - paramDesc = operation.getParameter(params.size() - 1); + if (isResponse) { + paramDesc = operation.getReturnParamDesc(); + } + else { + paramDesc = operation.getParameter(params.size() - 1); + } } if (paramDesc == null) { - throw new SAXException("operation description is missing parameter description!"); + throw new SAXException(Messages.getMessage("noParmDesc")); } destClass = paramDesc.getJavaType();