You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2013/09/03 16:52:52 UTC
svn commit: r1519700 - in /cxf/trunk:
services/xkms/xkms-client/src/main/java/org/apache/cxf/xkms/client/XKMSInvoker.java
systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/xkms/client.xml
Author: coheigea
Date: Tue Sep 3 14:52:52 2013
New Revision: 1519700
URL: http://svn.apache.org/r1519700
Log:
Minor XKMS changes
Modified:
cxf/trunk/services/xkms/xkms-client/src/main/java/org/apache/cxf/xkms/client/XKMSInvoker.java
cxf/trunk/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/xkms/client.xml
Modified: cxf/trunk/services/xkms/xkms-client/src/main/java/org/apache/cxf/xkms/client/XKMSInvoker.java
URL: http://svn.apache.org/viewvc/cxf/trunk/services/xkms/xkms-client/src/main/java/org/apache/cxf/xkms/client/XKMSInvoker.java?rev=1519700&r1=1519699&r2=1519700&view=diff
==============================================================================
--- cxf/trunk/services/xkms/xkms-client/src/main/java/org/apache/cxf/xkms/client/XKMSInvoker.java (original)
+++ cxf/trunk/services/xkms/xkms-client/src/main/java/org/apache/cxf/xkms/client/XKMSInvoker.java Tue Sep 3 14:52:52 2013
@@ -76,10 +76,16 @@ public class XKMSInvoker {
this.xkmsConsumer = xkmsConsumer;
}
+ public XKMSInvoker(String endpointAddress) {
+ this(endpointAddress, null);
+ }
+
public XKMSInvoker(String endpointAddress, Bus bus) {
- SpringBusFactory.setDefaultBus(bus);
- SpringBusFactory.setThreadDefaultBus(bus);
+ if (bus != null) {
+ SpringBusFactory.setDefaultBus(bus);
+ SpringBusFactory.setThreadDefaultBus(bus);
+ }
XKMSService xkmsService = new XKMSService();
xkmsConsumer = xkmsService.getPort(XKMSPortType.class);
Modified: cxf/trunk/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/xkms/client.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/xkms/client.xml?rev=1519700&r1=1519699&r2=1519700&view=diff
==============================================================================
--- cxf/trunk/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/xkms/client.xml (original)
+++ cxf/trunk/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/xkms/client.xml Tue Sep 3 14:52:52 2013
@@ -45,20 +45,16 @@
<!-- Begin Symmetric -->
<!--
+ <bean id="additionalClasses"
+ class="org.apache.cxf.xkms.model.extensions.AdditionalClassesFactory" />
+
<jaxws:client id="xkmsClient"
serviceClass="org.w3._2002._03.xkms_wsdl.XKMSPortType"
name="{http://www.w3.org/2002/03/xkms#wsdl}XKMSPort"
address="https://localhost:${testutil.ports.XKMSServer}/XKMS">
<jaxws:properties>
<entry key="jaxb.additionalContextClasses">
- <bean
- class="org.apache.cxf.xkms.model.extensions.ClassArrayFactoryBean">
- <property name="classNames">
- <list>
- <value>org.apache.cxf.xkms.model.extensions.ResultDetails</value>
- </list>
- </property>
- </bean>
+ <bean factory-bean="additionalClasses" factory-method="create" />
</entry>
</jaxws:properties>
</jaxws:client>