-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdispatch xml
100 lines (89 loc) · 4.07 KB
/
dispatch xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:sws="http://www.springframework.org/schema/web-services"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/web-services
http://www.springframework.org/schema/web-services/web-services-2.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
<import resource="Interest-Service.xml" />
<import resource="logging_local.xml" />
<!-- Component Scan -->
<context:component-scan base-package="com.bnp.ivision.common.interest" />
<mvc:annotation-driven />
<!-- JAXB Marshaller -->
<bean id="jaxbMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
<property name="classesToBeBound">
<list>
<value>com.bnp.ivision.common.interest.domain.Interest</value>
<value>com.bnp.ivision.common.interest.domain.InterestStatement</value>
<value>com.bnp.ivision.common.interest.domain.InterestStatementList</value>
<value>com.bnp.ivision.common.interest.domain.UpdatedStatementList</value>
<value>com.bnp.ivision.common.interest.domain.TransactionStatement</value>
<value>com.bnp.ivision.common.interest.domain.TransactionStatementList</value>
<!-- 945054 : IVN-18866 : Error Propagation : 20140827 : START -->
<value>com.bnp.ivision.common.interest.domain.InterestErrorInfo</value>
<!-- 945054 : IVN-18866 : 20140827 : END -->
</list>
</property>
<property name="marshallerProperties">
<map>
<entry key="jaxb.fragment">
<value type="boolean">true</value>
</entry>
</map>
</property>
</bean>
<!-- Marshalling View for Interest -->
<bean id="interestdetails" class="org.springframework.web.servlet.view.xml.MarshallingView">
<property name="marshaller" ref="jaxbMarshaller" />
</bean>
<!-- Interest request Object -->
<bean id="interest" class="com.bnp.ivision.common.interest.domain.Interest" />
<!-- View Resolver -->
<bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
<property name="mediaTypes">
<map>
<entry key="xml" value="application/xml" />
<entry key="html" value="text/html" />
</map>
</property>
<property name="viewResolvers">
<list>
<bean class="org.springframework.web.servlet.view.BeanNameViewResolver" />
</list>
</property>
</bean>
<!-- Converters -->
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="messageConverters">
<util:list id="beanList">
<ref bean="marshallingHttpMessageConverter" />
<ref bean="stringHttpMessageConverter" />
</util:list>
</property>
</bean>
<bean id="stringHttpMessageConverter" class="org.springframework.http.converter.StringHttpMessageConverter" />
<bean id="marshallingHttpMessageConverter"
class="org.springframework.http.converter.xml.MarshallingHttpMessageConverter">
<property name="marshaller" ref="jaxbMarshaller" />
<property name="unmarshaller" ref="jaxbMarshaller" />
</bean>
<!-- Properties -->
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/>
<property name="location" value="classpath:properties/RES_InterestWebService.properties"/>
</bean>
</beans>