From 0425aadc78680e53000fd0108b540d6eca048516 Mon Sep 17 00:00:00 2001 From: gmcdonald Date: Sat, 13 Feb 2010 01:32:03 +0000 Subject: 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 --- tools/codegen/javatool/README | 29 +++++++++++++++++++++++++++++ tools/codegen/javatool/WSDL2C.bat | 9 +++++++++ tools/codegen/javatool/WSDL2C.sh | 11 +++++++++++ 3 files changed, 49 insertions(+) create mode 100644 tools/codegen/javatool/README create mode 100644 tools/codegen/javatool/WSDL2C.bat create mode 100755 tools/codegen/javatool/WSDL2C.sh (limited to 'tools/codegen/javatool') 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 $* -- cgit v1.1-32-gdbae