4 Replies Latest reply on Sep 28, 2004 12:48 PM by Leonardo Cardoso

    XDoclet jbossnet generates web-service.xml with error

    Leonardo Cardoso Newbie

      Hello everyone.

      I`m trying to use the XDoclet tag <jbossnet.../> to generate my web-service.xml file, but something is wrong. The XML file generated don`t have the service name, neigther the homeInterfaceName parameter, and puts the wrong provider, as shown bellow:

      <service name="" provider="Handler">
       <parameter name="handlerClass" value="org.jboss.net.axis.server.EJBProvider"/>
       <parameter name="beanJndiName" value="Hello"/>
       <parameter name="allowedMethods" value="complexHello "/>
       <requestFlow name="Request">
       </requestFlow>
       <responseFlow name="Response">
       </responseFlow>
       </service>

      It`s important to say that I`ve already put the @jboss-net:web-service urn="Hello" for my class, as shown bellow:

      /**
       * The typical Hello Session Bean this time as a web-service.
       *
       * @author jung
       * @author Andrew C. Oliver
       * @version $Revision: 1.1.2.1 $
       * @ejb.bean name="Hello" display-name="Hello World Bean" type="Stateless" view-type="remote" jndi-name="Hello"
       *
       * @ejb.interface remote-class="org.jboss.examples.ws.hello.Hello" extends="javax.ejb.EJBObject"
       * @ejb.home remote-class="org.jboss.examples.ws.hello.HelloHome" extends="javax.ejb.EJBHome"
       * @ejb.transaction type="Required"
       *
       *
       * @jboss-net:web-service urn="Hello"
       *
       */
      public class HelloBean implements javax.ejb.SessionBean {
      
      
       public void ejbActivate() throws EJBException, RemoteException {
       // TODO Auto-generated method stub
      
       }
       public void ejbPassivate() throws EJBException, RemoteException {
       // TODO Auto-generated method stub
      
       }
       public void ejbRemove() throws EJBException, RemoteException {
       // TODO Auto-generated method stub
      
       }
       public void setSessionContext(SessionContext ctx) throws EJBException,
       RemoteException {
       // TODO Auto-generated method stub
      
       }
       /*
       * @jboss-net.web-method
       * @ejb.interface-method view-type="remote"
       */
       public String hello(String name) {
       return "Hello " + name + "!";
       }
      
       /**
       * @ejb.create-method view-type = "remote"
       */
       public void ejbCreate() throws CreateException {
       // TODO Auto-generated method stub
      
       }
       /**
       * @jboss-net.web-method
       * @ejb.interface-method view-type="remote"
       */
       public Object[] complexHello(Object[] query) {
       Object[] reply = new Object[query.length];
       for (int n = 0; n < query.length; n++) {
       HelloObj hello = (HelloObj) query[n];
       reply[n] = new HelloReplyObj(n + ": " + hello.getMsg());
       }
       return reply;
       }
      }


      Please, anyone knows what`s going on?

      Thank`s a lot.

      Leonardo Cardoso