All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.enunciate.modules.xfire.xfire-servlet.xml.fmt Maven / Gradle / Ivy

Go to download

The Enunciate XML module generates the artifacts required to deploy XFire-supported SOAP endpoints.

The newest version!
[#ftl]
[#-- @ftlvariable name="endpointInterface" type="org.codehaus.enunciate.contract.jaxws.EndpointInterface" --]
[@file name="xfire-servlet.xml" charset="utf-8"]
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       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">

  <context:annotation-config/>

  <import resource="${xfireBeansImport}"/>

  <!-- the soap service factory -->
  <bean id="soapServiceFactory" class="org.codehaus.enunciate.modules.xfire.EnunciatedJAXWSServiceFactory"/>

  <!-- the parent for all soap service endpoints -->
  <bean id="soap-endpoint" abstract="true" class="org.codehaus.enunciate.modules.xfire.EnunciatedXFireExporter">
    <property name="serviceFactory" ref="soapServiceFactory"/>
    <property name="xfire" ref="xfire"/>
  </bean>

  <!-- the handler mapping for the spring servlet. -->
  <bean id="handlerMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
    <property name="alwaysUseFullPath" value="true"/>
    <property name="interceptors" ref="enunciate-handler-interceptors"/>
    <property name="urlMap">
      <map>
  [@forEachWsdl]
    [@forEachEndpointInterface wsdl=wsdl]
      [#list endpointInterface.endpointImplementations as impl]
        [#if impl.bindingType.soap11 || impl.bindingType.soap12]

        [#--todo: what about eis with the same name, different namespace?--]
        <entry key="${endpointInterface.metaData.soapPath}">
          <bean parent="soap-endpoint">
            <property name="serviceClass" value="${impl.qualifiedName}"/>
            <property name="serviceBean" ref="${impl.serviceEndpointId}"/>
          [#if wsdl.properties.filename??]
            <property name="wsdlView">
              <bean class="org.springframework.web.servlet.view.RedirectView">
                <property name="url" value="[#if docsDir?exists]/${docsDir}[/#if]/${wsdl.properties.filename}"/>
                <property name="contextRelative" value="true"/>
              </bean>
            </property>
          [/#if]
          </bean>
        </entry>
        [/#if]
      [/#list]
    [/@forEachEndpointInterface]
  [/@forEachWsdl]
      </map>
    </property>
  </bean>
</beans>
[/@file]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy