]> git.argeo.org Git - gpl/argeo-slc.git/blob - legacy/runtime/org.argeo.slc.support.ws.client/src/main/resources/org/argeo/slc/ws/client/spring/applicationContext.xml
Remove SlcExecution and process packages
[gpl/argeo-slc.git] / legacy / runtime / org.argeo.slc.support.ws.client / src / main / resources / org / argeo / slc / ws / client / spring / applicationContext.xml
1 <!--
2
3 Copyright (C) 2007-2012 Mathieu Baudier
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17 -->
18 <beans xmlns="http://www.springframework.org/schema/beans"
19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
21 default-lazy-init="true">
22
23 <import
24 resource="classpath:/org/argeo/slc/castor/spring/applicationContext.xml" />
25 <import
26 resource="classpath:/org/argeo/slc/xml/spring/applicationContext.xml" />
27
28 <bean id="slcDefault.ws.client.webServiceTemplate"
29 parent="slcTemplate.ws.client.webServiceTemplate">
30 <constructor-arg ref="slcDefault.ws.client.messageFactory" />
31 <property name="defaultUri" value="${slc.ws.uri}" />
32 </bean>
33
34 <bean
35 class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
36 lazy-init="false">
37 <property name="systemPropertiesModeName"
38 value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
39 <property name="ignoreUnresolvablePlaceholders" value="true" />
40 <property name="properties">
41 <props>
42 <prop key="slc.ws.uri">
43 http://localhost:9090/org.argeo.slc.webapp/slcService/
44 </prop>
45 </props>
46 </property>
47 </bean>
48
49 <bean id="slcTemplate.ws.client.webServiceTemplate"
50 class="org.springframework.ws.client.core.WebServiceTemplate"
51 abstract="true">
52 <property name="marshaller" ref="slcDefault.castor.marshaller" />
53 <property name="unmarshaller"
54 ref="slcDefault.castor.marshaller" />
55 <property name="interceptors">
56 <list>
57 <bean
58 class="org.argeo.slc.ws.client.ValidatingClientInterceptor">
59 <property name="validator"
60 ref="slcDefault.xml.xsdValidator" />
61 </bean>
62 </list>
63 </property>
64 </bean>
65
66 <bean id="slcDefault.ws.client.messageFactory"
67 class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory" />
68
69 <bean name="slcDefault.ws.client.treeTestResultWsNotfier"
70 class="org.argeo.slc.ws.test.tree.WebServiceTreeTestResultNotifier">
71 <property name="template"
72 ref="slcDefault.ws.client.webServiceTemplate" />
73 <property name="onlyOnClose" value="false" />
74 </bean>
75
76 <bean name="slcDefault.ws.client.slcExecutionNotifier"
77 class="org.argeo.slc.ws.process.WebServiceSlcExecutionNotifier">
78 <property name="template"
79 ref="slcDefault.ws.client.webServiceTemplate" />
80 </bean>
81
82 </beans>