[jboss-user] [JBossWS] - jbossws - multiple wsdl / webservices.xml

MmarcoM do-not-reply at jboss.com
Thu Sep 7 06:59:41 EDT 2006


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



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970054#3970054

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970054



More information about the jboss-user mailing list