2 Replies Latest reply on Sep 14, 2006 12:54 PM by Thomas Diesler

    jbossws  - multiple wsdl / webservices.xml

    Marco Novice

      hi all,
      i am exposing 2 ejbs as webservices.... using latest jbossws
      i am using two different wstools-config files....
      JIRA JbossWS-1090 contained a fix in the sense that the webservice.xml does not get overridden by one of hte two services..

      however, if my two services have different namespaces for eachservice, in webservices.xml only one of the two will be present...

      example

      1st wstools-config.xml

      
      <configuration xmlns="http://www.jboss.org/jbossws-tools">
      
       <java-wsdl>
       <service name="MessengerService" style="rpc" endpoint="com..mw.webservices.MessengerService"/>
       <namespaces target-namespace="http://mw.com/messengerservice"
       type-namespace="http://mw.com/messengerservice/types"/>
       <mapping file="mss-mapping.xml"/>
       <webservices ejb-link="Responder" append="true"/>
       </java-wsdl>
      
      </configuration>
      


      second

      <configuration xmlns="http://www.jboss.org/jbossws-tools">
      
       <java-wsdl>
       <service name="TranslationServiceService" style="rpc" endpoint="com.mw.webservices.TranslationService"/>
       <namespaces target-namespace="http://mw.com/translationservice"
       type-namespace="http://mw.com/translationservice/types"/>
       <mapping file="tss-mapping.xml"/>
       <webservices ejb-link="TranslationService" append="true"/>
       </java-wsdl>
      
      </configuration>
      


      the webservices.xml that gets generated lists this at the top
      <webservices version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:impl='http://mw.waersystems.com/messengerservice' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd'>
      


      i can fix it easly by using same namespace for both services, but i wanted just to raise the issue

      thanx and regards
      marco