You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2007/05/29 21:13:43 UTC
svn commit: r542624 - in /incubator/cxf/trunk: pom.xml
rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
Author: dkulp
Date: Tue May 29 12:13:42 2007
New Revision: 542624
URL: http://svn.apache.org/viewvc?view=rev&rev=542624
Log:
Map return values that are headers as headers
Modified:
incubator/cxf/trunk/pom.xml
incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
Modified: incubator/cxf/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/pom.xml?view=diff&rev=542624&r1=542623&r2=542624
==============================================================================
--- incubator/cxf/trunk/pom.xml (original)
+++ incubator/cxf/trunk/pom.xml Tue May 29 12:13:42 2007
@@ -343,7 +343,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
- <version>2.0-beta-4</version>
+ <version>2.0-beta-6</version>
<configuration>
<tagBase>https://svn.apache.org/repos/asf/incubator/cxf/tags</tagBase>
<useReleaseProfile>false</useReleaseProfile>
Modified: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java?view=diff&rev=542624&r1=542623&r2=542624
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java (original)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java Tue May 29 12:13:42 2007
@@ -746,6 +746,16 @@
if (!isRPC(method) && !isWrapped(method)) {
part.setProperty(ELEMENT_NAME, q2);
}
+
+ if (isHeader(method, -1)) {
+ part.setProperty(HEADER, Boolean.TRUE);
+ if (isRPC(method) || !isWrapped(method)) {
+ part.setElementQName(q2);
+ } else {
+ part.setProperty(ELEMENT_NAME, q2);
+ }
+ }
+
part.setIndex(-1);
}