Author: richard.opalka(a)jboss.com
Date: 2010-10-20 08:02:04 -0400 (Wed, 20 Oct 2010)
New Revision: 13161
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/serviceref/CXFServiceRefStubPropertyConfigurer.java
Log:
[JBWS-3140] propagate responses attribute as well
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/serviceref/CXFServiceRefStubPropertyConfigurer.java
===================================================================
---
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/serviceref/CXFServiceRefStubPropertyConfigurer.java 2010-10-20
11:03:24 UTC (rev 13160)
+++
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/serviceref/CXFServiceRefStubPropertyConfigurer.java 2010-10-20
12:02:04 UTC (rev 13161)
@@ -120,7 +120,13 @@
if (upcmd.isAddressingEnabled())
{
- features.add(new AddressingFeature(true, upcmd.isAddressingRequired()));
+ final String refResponses = upcmd.getAddressingResponses();
+ AddressingFeature.Responses responses = AddressingFeature.Responses.ALL;
+ if ("ANONYMOUS".equals(refResponses))
+ responses = AddressingFeature.Responses.ANONYMOUS;
+ if ("NON_ANONYMOUS".equals(refResponses))
+ responses = AddressingFeature.Responses.NON_ANONYMOUS;
+ features.add(new AddressingFeature(true, upcmd.isAddressingRequired(),
responses));
}
serviceFactoryBean.setWsFeatures(features);