axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntha...@apache.org
Subject svn commit: r497561 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
Date Thu, 18 Jan 2007 20:29:38 GMT
Author: nthaker
Date: Thu Jan 18 12:29:37 2007
New Revision: 497561

URL: http://svn.apache.org/viewvc?view=rev&rev=497561
Log:
Adding fix to read correct defaults for ResponseWrapper Annotation.

Modified:
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java?view=diff&rev=497561&r1=497560&r2=497561
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
(original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
Thu Jan 18 12:29:37 2007
@@ -715,7 +715,11 @@
                     String className = DescriptionUtils.javaMethodtoClassName(seiMethod.getName());
                     responseWrapperClassName = packageName + "." + className + "Response";
                 } else {
-                    responseWrapperClassName = methodComposite.getDeclaringClass() + "Response";
+                	//JAXWS Spec is not clear on what default should be added. We think its
the endpoint impls package + OperationName + Response.
+                	//In situation where wsGen uses sei's package to store jaxb bean.
+                	String declaringClazz = methodComposite.getDeclaringClass();
+                	String packageName = declaringClazz.substring(0, declaringClazz.lastIndexOf("."));
+                    responseWrapperClassName = packageName + "." + DescriptionUtils.javaMethodtoClassName(methodComposite.getMethodName())
+ "Response";
                 }
                 responseWrapperClassName = determineActualAritfactPackage(responseWrapperClassName);
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message