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 nt...@apache.org on 2007/01/18 21:29:38 UTC
svn commit: r497561 -
/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
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