Bonjour,
j 'ai suivi un tutorial me permettant de comprends comment développer un ejb stateless webservice
le déploiement sur glassfish se fait tres bien et un wsdl est généré lors du déploiement
par contre j'ai essayé de le déployer sur jboss 6 et 7 et aucun wsdl n'est accessible
avez vous une idée, ai je oublié qqchose ou avez vous un tutorial à ce sujet ?
au cas où, voici mes 2 fichiers
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package test; import javax.jws.WebService; import javax.jws.WebMethod; import java.rmi.Remote; import java.rmi.RemoteException; import javax.jws.soap.SOAPBinding; import javax.jws.soap.SOAPBinding.Style; @WebService @SOAPBinding(style=Style.RPC) public interface Calculator extends Remote { @WebMethod int add(int x, int y); @WebMethod int subtract(int x, int y); }j'ai vu qu'il y a un script wsprovide dans jboss mais des que j'essaye de l'utiliser en ligne de commande j'obtiens
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package test; import javax.ejb.Stateless; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; import javax.jws.soap.SOAPBinding.Style; @Stateless @WebService(endpointInterface="test.Calculator") public class CalculatorBean { public int add(int x, int y) { return x + y; } public int subtract(int x, int y) { return x - y; } }
Error: Could not load class [unmod.Calculator]. Did you specify a valid --classpath?
Partager