Hello everyone.
I`m trying to use the XDoclet tag 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:
|
|
|
|
|
|
|
|
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
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846317#3846317
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846317
---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user