Hello,
Sorry, but my english is �.
So, I need to in my project uses a WSIF and WSDL4J, for a dynamic invocation of community of Web services; but, I don�t come to instantiate a WSIFService from description (WSDL) of the Web services, and I don�t have locate the problems.
here my source code:
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 com.ibm.wsdl.xml.WSDLReaderImpl;
public class MainClass {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Raccord de m�thode auto-g�n�r�
WSDLReaderImpl _WSDLReader = new WSDLReaderImpl();
Definition _WSDLDef = null;
try {
_WSDLDef = _WSDLReader.readWSDL("http://localhost:8080/axis/services/allo?wsdl");
} catch (WSDLException e) {
// TODO Bloc catch auto-g�n�r�
e.printStackTrace();
}
try {
WSIFService sq = WSIFServiceFactory.newInstance().getService(_WSDLDef);
} catch (WSIFException e) {
// TODO Bloc catch auto-g�n�r�
e.printStackTrace();
}
}
}
and here Error Message:
Retrieving document at 'http://localhost:8080/axis/services/allo?wsdl'.
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.WSIFServiceFactory.newInstance(Unknown Source)
at mainPack.MainClass.main(MainClass.java:27)
Can you help me.
Note: I use
* wsdl4j v1.5
* wsif v2.0
* Tomcat v5.5.17
* axis v1.4
* JDK v1.5.0-b64