Modified: 
cxf/trunk/systests/jaxrs/src/test/resources/jaxrs_soap_rest/WEB-INF/beans.xml
URL: 
http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/resources/jaxrs_soap_rest/WEB-INF/beans.xml?rev=1070973&r1=1070972&r2=1070973&view=diff
==============================================================================
--- 
cxf/trunk/systests/jaxrs/src/test/resources/jaxrs_soap_rest/WEB-INF/beans.xml 
(original)
+++ 
cxf/trunk/systests/jaxrs/src/test/resources/jaxrs_soap_rest/WEB-INF/beans.xml 
Tue Feb 15 17:07:08 2011
@@ -55,6 +55,9 @@ http://cxf.apache.org/schemas/jaxrs.xsd";
   </jaxrs:client>       
          
   <bean id="bookstore" 
class="org.apache.cxf.systest.jaxrs.jaxws.BookStoreSoapRestImpl"/>
+  <bean id="bookstore-simple" 
class="org.apache.cxf.systest.jaxrs.jaxws.BookStoreSoapRestImpl">
+     <property name="ignoreJaxrsClient" value="true"/>
+  </bean>
 
   <jaxws:endpoint xmlns:s="http://books.com";
       serviceName="s:BookService"
@@ -171,5 +174,53 @@ http://cxf.apache.org/schemas/jaxrs.xsd";
     <value>application/fastinfoset</value>
   </util:list>
    
+  <jaxrs:server id="restTransform"
+                       address="/rest-transform">
+    <jaxrs:serviceBeans>
+      <bean class="org.apache.cxf.systest.jaxrs.BookStore"/>
+    </jaxrs:serviceBeans>
+    
+    <jaxrs:features>
+       <ref bean="transformFeatureRest" />
+    </jaxrs:features>
+  </jaxrs:server> 
+   
+  <bean id="transformFeatureRest" 
class="org.apache.cxf.feature.StaxTransformFeature">
+      <property name="outTransformElements">
+        <map>
+         <entry key="Book" value="TheBook"/>
+        </map>
+      </property>
+      <property name="inTransformElements">
+        <map>
+         <entry key="{http://www.example.org/super-books}*"; value="*"/>
+        </map>
+      </property>  
+  </bean> 
+  
+  <jaxws:endpoint xmlns:s="http://books.com";
+      serviceName="s:BookService"
+      endpointName="s:BookPort"
+      id="soapservice-transform"
+      implementor="#bookstore-simple"
+      address="/soap-transform/bookservice">
+      <jaxws:features>
+       <ref bean="transformFeatureSoap" />
+      </jaxws:features>
+   </jaxws:endpoint> 
+   
+   <bean id="transformFeatureSoap" 
class="org.apache.cxf.feature.StaxTransformFeature">
+      <property name="outTransformElements">
+        <map>
+         <entry key="{http://jaxws.jaxrs.systest.cxf.apache.org/}*"; value="*"/>
+        </map>
+      </property>
+      <property name="inTransformElements">
+        <map>
+         <entry key="*" value="{http://jaxws.jaxrs.systest.cxf.apache.org/}*"/>
+        </map>
+      </property>
+   </bean>
+   
 </beans>
 <!-- END SNIPPET: beans -->


Reply via email to