Hello, I have problems to generate the client stubs for an given WSDL file. The goal is to have a client for command-line operations, _not_ client calls from any Servlet-Container/EJB-Container (like Tomcat or WebSphere).
Environment: Windows XP (AIX 5.3 is available if necessary) Java SDK 1.4.2_12 Axis 1.4 (Binary download) I have read http://ws.apache.org/axis/java/install.html to setup the classpath: set AXIS_HOME=c:\Programme\axis-1_4 set AXIS_LIB=%AXIS_HOME%\lib set AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2.jar;%AXIS_LIB%\commons-logging-1.0.4.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\wsdl4j-1.5.1.jar I have read http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL to know the parameters. My company has an SQUID-Proxy to connect to the internet: I have added: set PROXY_OPTS=-Djava.util.logging.config.file=./logging.properties -Dhttp.proxyHost=PROXY_HOSTNAME_HERE -Dhttp.proxyPort=8080 -DsocksProxyHost=PROXY_HOSTNAME_HERE -DsocksProxyPort=8080 -Djava.net.socks.username=MYUSER_HERE -Djava.net.socks.password=MYPASSWORD_HERE I am calling: java -cp %AXISCLASSPATH% %PROXY_OPTS% org.apache.axis.wsdl.WSDL2Java -D -u -n .\Cognos.wsdl >asysout.txt 2>asyserr.txt The wsdl file is in the same directory as the cmd file for the call, it is not an remote URL! In asyserr.txt the following warning and exception comes: 17.10.2006 18:28:51 org.apache.axis.utils.JavaUtils isAttachmentSupported WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled. java.io.IOException: WSDL2Java emitter timed out (this often means the WSDL at the specified URL is inaccessible)! at org.apache.axis.wsdl.gen.Parser.run(Parser.java:320) at org.apache.axis.wsdl.toJava.Emitter.run(Emitter.java:599) at org.apache.axis.wsdl.gen.WSDL2.run(WSDL2.java:343) at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:373) In axis.log (from commons-logging/JDK Logging) comes: 17.10.2006 18:29:36 org.apache.axis.i18n.ProjectResourceBundle handleGetObject FINE: org.apache.axis.i18n.resource::handleGetObject(timedOut) several times. (since this is a debug message, I do not care about it) My questions: 1) I have set -D to generate DEBUG output, the JDK logger is set to FINEST: Why does no debug output appear? Is some parameter missing? 2) Is it possible to generate client stubs without any connection to the internet and without modifying the WSDL? This would be my favourite solution. 3) Are the -D properties to correct to pass the authentification of the SQUID-Proxy? Finally I have no problems to use IBM Rational RSA to generate client stubs for WebSphere 6.0 without connecting to the internet. But this does not solve my problem - I need a solution without any container, just a simple client for the command line. If it helps to determine the problem: The first lines of the wsdl are below. Any help is very welcome - thanks in advance. Regards Boris Excerpt from the beginning of the WSDL-File: <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://developer.cognos.com/schemas/bibus/3/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://developer.cognos.com/schemas/bibus/3/" name="Cognos"> <wsdl:types> <xs:schema targetNamespace="http://developer.cognos.com/schemas/bibus/3/" elementFormDefault="qualified" attributeFormDefault="unqualified"> <!-- Import the SOAP Encoding Schema --> <xs:import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
