Hi,
I have multiple webservices for which I use xfire binding. 
1. Do I need to use multiple http bindings and multiple servlets to deploy
them as shown below? Is there a more concise configuration?
2. Using "org.apache.servicemix.components.xfire.XFireBinding" does not
diisplay the WSDL when invoking the servlet. We currently have a custom
implementation to do it. Is there any standard option?
Cheers,
Hari.
-----------------------springcontext-sm.xml--------------------------------
  <sm:container
        id="jbi"
        monitorInstallationDirectory="false">

    <sm:activationSpecs>
        <sm:activationSpec componentName="orderHttpBinding"
service="xfire:httpBinding" destinationService="xfire:OrderService">
                <sm:component>
                   <bean 
class="org.apache.servicemix.components.http.HttpInOutBinding"
abstract="false" singleton="true" lazy-init="default" autowire="default"
dependency-check="default" /> 
                </sm:component>
       </sm:activationSpec>
          
       <sm:activationSpec
            componentName="orderXFireBinding"
            service="xfire:OrderService">
            <sm:component>
               <bean class="com.company.servicemix.XFireBinding">
                   <property name="xfire" ref="xfire"/>
               </bean>
            </sm:component>
       </sm:activationSpec>

       <sm:activationSpec componentName="directoryHttpBinding"
service="xfire:httpBinding" destinationService="xfire:DirectoryService">
                <sm:component>
                   <bean 
class="org.apache.servicemix.components.http.HttpInOutBinding"
abstract="false" singleton="true" lazy-init="default" autowire="default"
dependency-check="default" /> 
                </sm:component>
          </sm:activationSpec>
          
       <sm:activationSpec
            componentName="directoryXFireBinding"
            service="xfire:DirectoryService">
            <sm:component>
               <bean class="com.company.servicemix.XFireBinding">
                   <property name="xfire" ref="xfire"/>
               </bean>
            </sm:component>
       </sm:activationSpec>
    </sm:activationSpecs>
  </sm:container>

----------------------WEB.xml---------------------------------
  <servlet>
    <servlet-name>OrderBindingServlet</servlet-name>
    <servlet-class>
      org.apache.servicemix.components.http.SpringBindingServlet
    </servlet-class>
    <init-param>
      <param-name>endpoint</param-name>
      <param-value>orderHttpBinding</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>

  <servlet-mapping>
    <servlet-name>OrderBindingServlet</servlet-name>
    <url-pattern>/jbi/OrderService/*</url-pattern>
  </servlet-mapping>
  
  <servlet>
    <servlet-name>DirectoryBindingServlet</servlet-name>
    <servlet-class>
      org.apache.servicemix.components.http.SpringBindingServlet
    </servlet-class>
    <init-param>
      <param-name>endpoint</param-name>
      <param-value>directoryHttpBinding</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>

  <servlet-mapping>
    <servlet-name>DirectoryBindingServlet</servlet-name>
    <url-pattern>/jbi/DirectoryService/*</url-pattern>
  </servlet-mapping>

-- 
View this message in context: 
http://www.nabble.com/Deploying-multiple-webservices-with-xfire-binding-tf2074775.html#a5713547
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to