You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
4.0 KiB
80 lines
4.0 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
|
|
-->
|
|
<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:jaxrs="http://cxf.apache.org/jaxrs"
|
|
xmlns:jaxws="http://cxf.apache.org/jaxws"
|
|
xmlns:p="http://www.springframework.org/schema/p"
|
|
xsi:schemaLocation="
|
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
|
|
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
|
|
http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd"
|
|
>
|
|
<!-- CXF beans -->
|
|
<import resource="classpath:META-INF/cxf/cxf.xml" />
|
|
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
|
|
|
|
<context:annotation-config />
|
|
<context:component-scan base-package="org.apache.openmeetings.webservice" />
|
|
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
|
|
p:location="classpath:openmeetings.properties" />
|
|
|
|
<!-- (writeXsiType=false) -->
|
|
<jaxrs:server id="server" address="/">
|
|
<jaxrs:serviceBeans>
|
|
<ref bean="calendarWebService"/>
|
|
<ref bean="errorWebService"/>
|
|
<ref bean="fileWebService"/>
|
|
<ref bean="groupWebService"/>
|
|
<ref bean="infoWebService"/>
|
|
<ref bean="netTestWebService"/> <!-- JaxRs only -->
|
|
<ref bean="recordWebService"/>
|
|
<ref bean="roomWebService"/>
|
|
<ref bean="userWebService"/>
|
|
<ref bean="apiRoomService"/>
|
|
<ref bean="wbWebService"/>
|
|
</jaxrs:serviceBeans>
|
|
<jaxrs:providers>
|
|
<bean class="org.apache.openmeetings.webservice.util.RateLimitRequestFilter"/>
|
|
<bean class="org.apache.openmeetings.webservice.util.AppointmentMessageBodyWriter"/>
|
|
<bean class="org.apache.openmeetings.webservice.util.AppointmentListMessageBodyWriter"/>
|
|
<bean class="org.apache.openmeetings.webservice.util.UserMessageBodyWriter"/>
|
|
<bean class="org.apache.openmeetings.webservice.util.OmParamConverterProvider"/>
|
|
<bean class="org.apache.openmeetings.webservice.util.OmExceptionHandler"/>
|
|
</jaxrs:providers>
|
|
<jaxrs:outInterceptors>
|
|
<bean id="allowOriginProvider" class="org.apache.openmeetings.webservice.util.AllowOriginProvider"/>
|
|
</jaxrs:outInterceptors>
|
|
</jaxrs:server>
|
|
<jaxws:endpoint id="calendarServiceWS" address="/CalendarService" implementor="#calendarWebService"/>
|
|
<jaxws:endpoint id="errorServiceWS" address="/ErrorService" implementor="#errorWebService" />
|
|
<jaxws:endpoint id="groupServiceWS" address="/GroupService" implementor="#groupWebService" />
|
|
<jaxws:endpoint id="infoServiceWS" address="/InfoService" implementor="#infoWebService" />
|
|
<jaxws:endpoint id="fileServiceWS" address="/FileService" implementor="#fileWebService" />
|
|
<jaxws:endpoint id="recordServiceWS" address="/RecordService" implementor="#recordWebService" />
|
|
<jaxws:endpoint id="roomServiceWS" address="/RoomService" implementor="#roomWebService" />
|
|
<jaxws:endpoint id="apiRoomServiceWS" address="/ApiRoomService" implementor="#apiRoomService" />
|
|
<jaxws:endpoint id="userServiceWS" address="/UserService" implementor="#userWebService" />
|
|
<jaxws:endpoint id="wbServiceWS" address="/WbService" implementor="#wbWebService" />
|
|
</beans>
|