Slut tout le monde,

afin d epouvoir etre capable d'invoké des services Web de maniere dynamique et de les gerer comme une communauté, j'ai besoin d'implementer une bibliotheque a cette fin.

pour ce faire je doit utiliser WSIF 2.0 + WSDL4J, mais voila j'ai un probleme quand j'execute.

voila mon code source:
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
32
33
34
35
 
package mainPack;
 
import javax.wsdl.Definition;
import javax.wsdl.WSDLException;
 
import org.apache.wsif.WSIFException;
import org.apache.wsif.WSIFService;
import org.apache.wsif.WSIFServiceFactory;
import org.apache.wsif.util.*;
 
public class MainClass {
 
    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Raccord de méthode auto-généré
        Definition _WSDLDef = null;
        try {
            _WSDLDef = WSIFUtils.readWSDL(null, "http://localhost:8080/axis/services/allo?wsdl");
        } catch (WSDLException e1) {
            // TODO Bloc catch auto-généré
            e1.printStackTrace();
        }
        System.out.println(_WSDLDef.toString());
        try {
            WSIFService sq = WSIFServiceFactory.newInstance().getService(_WSDLDef);
        } catch (WSIFException e) {
            // TODO Bloc catch auto-généré
            e.printStackTrace();
        }
    }
 
}
et voila ce que j'obtien lors de l'execution:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.wsif.logging.Trc.<clinit>(Unknown Source)
at org.apache.wsif.util.WSIFUtils.readWSDL(Unknown Source)
at mainPack.MainClass.main(MainClass.java:20)
je suis ouvert a toutes suggestion.

REMARQUE:j'utilise
  • wsdl4j v1.5
  • wsif v2.0
  • Tomcat v5.5.17
  • axis v1.4
  • JDK v1.5.0-b64