3 Replies Latest reply on Jun 1, 2004 5:59 PM by andreas_austing

    web-service.xml - Duplicate Entries

    andreas_austing Newbie

      Hi,

      there are duplicate entries in my web-service.xml after running xdoclet. why?

      thanks
      Andreas

      Java-Code

      /*
       * ImportContentBean.java
       *
       */
      package ip.austing.modules.cms.services;
      
      import java.io.File;
      import java.util.Collection;
      import java.util.Date;
      import java.util.Iterator;
      
      import javax.ejb.EJBException;
      import javax.ejb.SessionBean;
      import javax.naming.Context;
      import javax.naming.InitialContext;
      import javax.naming.NamingException;
      import javax.xml.soap.SOAPException;
      
      import org.apache.axis.AxisFault;
      import org.apache.axis.Message;
      import org.apache.axis.MessageContext;
      import org.apache.axis.attachments.AttachmentPart;
      import org.apache.axis.attachments.Attachments;
      
      /**
       * @ejb.bean
       * name="ImportContent"
       * jndi-name="ejb/cms/ImportContentBean"
       * type="Stateless"
       *
       * @ejb.env-entry name="ContentDirectory"
       * type="java.lang.String"
       * value="###ContentDirectory###"
       *
       * @jboss-net.web-service
       * urn="ImportContent"
       **/
      
      public abstract class ImportContentBean implements SessionBean {
      
       /**
       * Import of a SCORM SCO
       *
       * @ejb.interface-method
       * view-type="local"
       *
       *
       * @jboss-net.web-method
       **/
       public boolean importContent(String identifier)
       throws EJBException { ... }
      
      }
      
      


      xdoclet generates the following web-service.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <!-- -->
      <!-- This JBoss.Net Web Service Descriptor has been generated by XDoclet -->
      <!-- and is brought to you by F. M. Brier, C. G. Jung and J. Essington -->
      <!-- -->
      
      <deployment
       name="ContentManagementService"
       xmlns="http://xml.apache.org/axis/wsdd/"
       targetNamespace="http://localhost/cms"
       xmlns:cms="http://localhost/cms"
       xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
      
      <!-- The following are declarations of service endpoints targetted to
       session beans -->
      
       <service name="ImportContent" provider="Handler">
       <parameter name="handlerClass" value="org.jboss.net.axis.server.EJBProvider"/>
       <parameter name="beanJndiName" value="ImportContentLocal"/>
       <parameter name="allowedMethods" value="importContent "/>
       <requestFlow name="ImportContentRequest">
       </requestFlow>
       <responseFlow name="ImportContentResponse">
       </responseFlow>
       </service>
      
      <!-- The following are typemappings for entity beans for implementing
       the implicit web-service value-object pattern -->
      
      <!-- The following are typemappings for bean-type value-objects -->
      
      <!-- There follow merged custom web service descriptions -->
      
      <?xml version="1.0" encoding="UTF-8"?>
      
      <!-- -->
      <!-- This JBoss.Net Web Service Descriptor has been generated by XDoclet -->
      <!-- and is brought to you by F. M. Brier, C. G. Jung and J. Essington -->
      <!-- -->
      
      <deployment
       name="ContentManagementService"
       xmlns="http://xml.apache.org/axis/wsdd/"
       targetNamespace="http://localhost/cms"
       xmlns:cms="http://localhost/cms"
       xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
      
      <!-- The following are declarations of service endpoints targetted to
       session beans -->
      
       <service name="ImportContent" provider="Handler">
       <parameter name="handlerClass" value="org.jboss.net.axis.server.EJBProvider"/>
       <parameter name="beanJndiName" value="ImportContentLocal"/>
       <parameter name="allowedMethods" value="importContent "/>
       <requestFlow name="ImportContentRequest">
       </requestFlow>
       <responseFlow name="ImportContentResponse">
       </responseFlow>
       </service>
      
      <!-- The following are typemappings for entity beans for implementing
       the implicit web-service value-object pattern -->
      
      <!-- The following are typemappings for bean-type value-objects -->
      
      <!-- There follow merged custom web service descriptions -->
      
      </deployment>