Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change 
notification.

The following page has been changed by AlexanderIvanyukovich:
http://wiki.apache.org/ws/FrontPage/Axis/UsingCommandLineTools

------------------------------------------------------------------------------
  = Introduction =
  Axis comes with command line tools whose usage is pretty fundamental for a 
new user. These are wsdl2java, java2wsdl, tcpmon and adminclient. All of these 
tools need to be invoked via java, and need a fairly complex classpath to work 
correctly.
  
- {{{java classpath [fully qualified name of class] parameters}}}
+ {{{java <classpath> <fully qualified name of class> <parameters>}}}
  
  Using the tools in this way is very frustrating because the command lines are 
very long and it is easy to make mistakes, so its probably wise to create some 
tools to help. 
  
@@ -25, +25 @@

  All the command line tools have logging, so we can create a simple 
log4j.properties file to ensure the logging is initialised properly. 
  
  {{{
-  # simple log4j configutation for axis #
+ # simple log4j configutation for axis #
-  # direct log messages to stdout #
+ # direct log messages to stdout #
-  log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+ log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-  log4j.appender.stdout.Target=System.out
+ log4j.appender.stdout.Target=System.out
-  log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+ log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-  log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - 
%m%n
+ log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - 
%m%n
-  # change logging level here.
+ # change logging level here.
-  log4j.rootLogger=info, stdout
+ log4j.rootLogger=info, stdout
  }}}
  
  We need to put this in a location which we will define as 
LOG4J_PROPERTIES_HOME 
@@ -155, +155 @@

   fi
  }}}
  
- Cutting to the chase, create (on one line)
+ Cutting to the chase, create (on one line):
  {{{
  /usr/bin/wsdl2java: java -classpath 
$JAVA_HOME"/lib":$JAVA_HOME"/lib/axis.jar":
  $JAVA_HOME"/lib/commons-discovery.jar":$JAVA_HOME"/lib/commons-logging.jar":
  
$JAVA_HOME"/lib/jaxrpc.jar":$JAVA_HOME"/lib/log4j-1.2.8.jar":$JAVA_HOME"/lib/saaj.jar:
  wsdl4j.jar":. org.apache.axis.wsdl.WSDL2Java $* 
  }}}
- From a shell, execute: chmod 755 /usr/bin/wsdl2java wsdl2java 
<fileyouwant.wsdl> HTH
+ From shell, execute:
+ {{{
+ chmod 755 /usr/bin/wsdl2java
+ wsdl2java <your_service.wsdl>
+ }}}
  
- 

Reply via email to