Bonjour

J’ai crée un web Service a l'aide de CXF, comme mentionné dans ce tutorial http://www.theasolutions.com/tutoria...attachment.jsp
J’ai testé mon web service via la classe ci-dessous (fournit par Apache) et ça marche très bien
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
 
package demo.hw.server;
 
import javax.xml.ws.Endpoint;
 
public class Server {
 
    protected Server() throws Exception {
        // START SNIPPET: publish
        System.out.println("Starting Server");
        HelloWorldImpl implementor = new HelloWorldImpl();
       String address = "http://localhost:8080/cxf1/services/UploadResumeWS" ;
        Endpoint.publish(address, implementor);
        // END SNIPPET: publish
    }
 
    public static void main(String args[]) throws Exception {
        new Server();
        System.out.println("Server ready...");
 
        Thread.sleep(5 * 60 * 1000);
        System.out.println("Server exiting");
        System.exit(0);
    }
}
Par contre quand je déployer mon web service dans Tomcat et je veux le tester je reçoit l’exception suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now Could not send Message.
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Could 
not send Message.
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
	at $Proxy46.add(Unknown Source)
Pourquoi cette exception? je dois générer et déployer le WSDL aussi ?( ce n’ai pas indiqué dans le tutorial)