summaryrefslogtreecommitdiffstats
path: root/tools/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'tools/codegen')
-rw-r--r--tools/codegen/javatool/README29
-rw-r--r--tools/codegen/javatool/WSDL2C.bat9
-rwxr-xr-xtools/codegen/javatool/WSDL2C.sh11
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 $*