diff options
author | gmcdonald | 2010-02-13 01:32:03 +0000 |
---|---|---|
committer | gmcdonald | 2010-02-13 01:32:03 +0000 |
commit | 0425aadc78680e53000fd0108b540d6eca048516 (patch) | |
tree | 8ec7ab8e015d454c5ec586dfc91e05a2dce1cfc0 /tools/codegen | |
download | axis2c-0425aadc78680e53000fd0108b540d6eca048516.tar.gz axis2c-0425aadc78680e53000fd0108b540d6eca048516.tar.bz2 |
Moving axis svn, part of TLP move INFRA-2441
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@909681 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tools/codegen')
-rw-r--r-- | tools/codegen/javatool/README | 29 | ||||
-rw-r--r-- | tools/codegen/javatool/WSDL2C.bat | 9 | ||||
-rwxr-xr-x | tools/codegen/javatool/WSDL2C.sh | 11 |
3 files changed, 49 insertions, 0 deletions
diff --git a/tools/codegen/javatool/README b/tools/codegen/javatool/README new file mode 100644 index 0000000..395bbb0 --- /dev/null +++ b/tools/codegen/javatool/README @@ -0,0 +1,29 @@ +WSDL2C.sh and WSDL2C.bat
+========================
+
+These scripts are provided to simplify the C code generation using WSDL2C Java tool that comes with Apache Axis2/Java.
+
+How to use
+----------
+1. Set AXIS2_HOME envionment vaiable to you Axis2 Java installation directory.
+ eg: 'export AXIS2_HOME=/home/axis2java'
+3. Run WSDL2C.sh giving WSDL2C command line arguments as the arguments to the shell script.
+
+Note: Do the same for the bat file on Windows.
+
+
+Examples
+--------
+
+To generate a sevice skeleton in C:
+Linux:
+ sh WSDL2C.sh -uri interoptestdoclitparameters.wsdl -ss -sd -d adb -u
+Windows:
+ WSDL2C.bat -uri interoptestdoclitparameters.wsdl -ss -sd -d adb -u
+
+To generate a client stub in C:
+Linux:
+ sh WSDL2C.sh -uri interoptestdoclitparameters.wsdl -d adb -u
+Windows
+ WSDL2C.bat -uri interoptestdoclitparameters.wsdl -d adb -u
+
diff --git a/tools/codegen/javatool/WSDL2C.bat b/tools/codegen/javatool/WSDL2C.bat new file mode 100644 index 0000000..d97b038 --- /dev/null +++ b/tools/codegen/javatool/WSDL2C.bat @@ -0,0 +1,9 @@ +echo off
+REM set AXIS2_HOME=C:\axis2-SNAPSHOT
+setlocal EnableDelayedExpansion
+set AXIS2_CLASSPATH=%AXIS2_HOME%
+FOR %%c in ("%AXIS2_HOME%\lib\*.jar") DO set AXIS2_CLASSPATH=!AXIS2_CLASSPATH!;%%c;
+
+java -classpath %AXIS2_CLASSPATH% org.apache.axis2.wsdl.WSDL2C %*
+
+
diff --git a/tools/codegen/javatool/WSDL2C.sh b/tools/codegen/javatool/WSDL2C.sh new file mode 100755 index 0000000..7882533 --- /dev/null +++ b/tools/codegen/javatool/WSDL2C.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +#export AXIS2_HOME=/home/axis2java +for f in $AXIS2_HOME/lib/*.jar +do + AXIS2_CLASSPATH=$AXIS2_CLASSPATH:$f +done +export AXIS2_CLASSPATH + +echo the classpath $AXIS2_CLASSPATH +java -classpath $AXIS2_CLASSPATH org.apache.axis2.wsdl.WSDL2C $* |