2013-07-24 20:28:18 +07:00
|
|
|
<?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:jaxrs="http://cxf.apache.org/jaxrs"
|
|
|
|
xmlns:jaxws="http://cxf.apache.org/jaxws"
|
|
|
|
xsi:schemaLocation="
|
|
|
|
http://www.springframework.org/schema/beans
|
|
|
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
|
|
http://cxf.apache.org/jaxrs
|
|
|
|
http://cxf.apache.org/schemas/jaxrs.xsd">
|
|
|
|
|
|
|
|
<import resource="classpath:META-INF/cxf/cxf.xml" />
|
|
|
|
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
|
|
|
|
|
|
|
|
<!-- JAX-RS -->
|
|
|
|
<jaxrs:server id="idempiereRest" address="/rest">
|
|
|
|
<jaxrs:serviceBeans>
|
|
|
|
<ref bean="ModelADServiceBean" />
|
|
|
|
<ref bean="CompositeServiceBean" />
|
|
|
|
</jaxrs:serviceBeans>
|
|
|
|
<jaxrs:providers>
|
|
|
|
<ref bean="xmlBeansProvider" />
|
2021-09-14 18:51:00 +07:00
|
|
|
<ref bean="xmlBeansJSONProvider" />
|
2013-07-24 20:28:18 +07:00
|
|
|
</jaxrs:providers>
|
|
|
|
</jaxrs:server>
|
|
|
|
|
|
|
|
<bean id="ModelADServiceBean" class="org.idempiere.adinterface.ModelADServiceImpl" />
|
|
|
|
<bean id="CompositeServiceBean" class="com.trekglobal.ws.CompositeServiceImpl" />
|
|
|
|
|
|
|
|
<bean id="xmlBeansProvider"
|
|
|
|
class="org.apache.cxf.jaxrs.provider.xmlbeans.XMLBeansElementProvider" />
|
2021-09-14 18:51:00 +07:00
|
|
|
|
|
|
|
<bean id="xmlBeansJSONProvider"
|
|
|
|
class="org.idempiere.jaxrs.provider.xmlbeans.XMLBeansJSONProvider" />
|
2013-07-24 20:28:18 +07:00
|
|
|
</beans>
|