bonjour,
de retour après une longue absence, bon j'aime testé une service web avec les ejb3, j'ai développé mon Bean "TestBean"et le WSDL est généré, j'utilise Eclipse wtp et Jboss 4, le probleme et coté client voila le code asocié:
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
23
24
25
26
27
28
29
30
31
package khaled;
 
import java.net.URL;
 
import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
 
import khallou.Test;
 
public class Client {
    public static void main(String[] args) throws Exception {
        URL url = new URL("http://pc-de-khallou:8080/WS/TestBean?wsdl");
        QName qname = new QName("http://khallou/jaws","TestService");
        System.out.println("Creating a service Using: \n\t"+ url + " \n\tand " + qname);
        ServiceFactory factory = ServiceFactory.newInstance();
        Service remote = factory.createService(url, qname);
        System.out.println("Obtaining reference to a proxy object");
        Test nom = (Test) remote.getPort(Test.class);
        System.out.println("Accessed local proxy: " + nom);
        String string = "world";
        System.out.println("Sending: " + string);
        try{
        	System.out.println("Receiving: " + nom.sayHello("world"));
        }
        catch(Exception e){
        	System.out.println(e.getStackTrace());
        }
 
    }
}

l'erreur au niveau de l'invocation alors j'ai fai une try catch (derniere ligne)
voila l'execution
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
Creating a service Using: 
	http://pc-de-khallou:8080/WS/TestBean?wsdl 
	and {http://khallou/jaws/}TestService
Obtaining reference to a proxy object
Accessed local proxy: org.jboss.ws.jaxrpc.CallImpl@ed0338
[Ljava.lang.StackTraceElement;@18dfef8
j'ai suit ce petit tuto http://www.theregister.co.uk/2007/01..._web_services/

merci d'avance pour toute proposition