spring.ws-config-sudoor.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- #%L sudoor-server-lib %% Copyright (C) 2013 - 2015 Shark Xu %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/gpl-2.0.html>. #L% --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:cxf="http://cxf.apache.org/core" xmlns:jaxrs="http://cxf.apache.org/jaxrs" 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 http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd"> <cxf:bus> <cxf:features> <cxf:logging /> </cxf:features> </cxf:bus> <bean id="WSS4JInInterceptor" class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor"> <constructor-arg> <map> <entry key="#{T(org.apache.wss4j.common.ConfigurationConstants).ACTION}" value="#{T(org.apache.wss4j.common.ConfigurationConstants).USERNAME_TOKEN}" /> <entry key="#{T(org.apache.wss4j.common.ConfigurationConstants).PASSWORD_TYPE}" value="PasswordText" /> <entry key="passwordCallbackRef"> <ref bean="serverPasswordCallback" /> </entry> </map> </constructor-arg> </bean> <bean id="WSS4JOutInterceptor" class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor"> <constructor-arg> <map> <entry key="#{T(org.apache.wss4j.common.ConfigurationConstants).ACTION}" value="#{T(org.apache.wss4j.common.ConfigurationConstants).USERNAME_TOKEN}" /> <entry key="#{T(org.apache.wss4j.common.ConfigurationConstants).PASSWORD_TYPE}" value="PasswordText" /> <entry key="#{T(org.apache.wss4j.common.ConfigurationConstants).USER}" value="testUser" /> <entry key="passwordCallbackRef"> <ref bean="clientPasswordCallback" /> </entry> </map> </constructor-arg> </bean> <jaxws:endpoint id="authServiceEndPoint" implementor="#authServiceImpl" address="/soap/sudoor/authService"> </jaxws:endpoint> <jaxws:client id="authServiceClient" serviceClass="net.gplatform.sudoor.server.security.controller.AuthService" address="http://localhost:8080/obiz/data/ws/soap/sudoor/authService"> </jaxws:client> <jaxrs:server address="/rest" basePackages="net.gplatform.sudoor.server.,${sudoor.application.basepackage}."> <jaxrs:providers> <!-- Providers in cxf-rt-rs-extension-providers can only handle jaxb object & primiry object --> <bean class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"></bean> </jaxrs:providers> </jaxrs:server> </beans>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy