You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by du...@apache.org on 2007/11/22 05:37:49 UTC

svn commit: r597296 - in /webservices/axis2/trunk/c/tools/codegen: ./ javatool/ javatool/README.txt javatool/WSDL2C.bat javatool/WSDL2C.sh

Author: dushshantha
Date: Wed Nov 21 20:37:46 2007
New Revision: 597296

URL: http://svn.apache.org/viewvc?rev=597296&view=rev
Log:
Added scripts to auto-generate C code from WSDL2C java tool.

Added:
    webservices/axis2/trunk/c/tools/codegen/
    webservices/axis2/trunk/c/tools/codegen/javatool/
    webservices/axis2/trunk/c/tools/codegen/javatool/README.txt
    webservices/axis2/trunk/c/tools/codegen/javatool/WSDL2C.bat
    webservices/axis2/trunk/c/tools/codegen/javatool/WSDL2C.sh

Added: webservices/axis2/trunk/c/tools/codegen/javatool/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/javatool/README.txt?rev=597296&view=auto
==============================================================================
--- webservices/axis2/trunk/c/tools/codegen/javatool/README.txt (added)
+++ webservices/axis2/trunk/c/tools/codegen/javatool/README.txt Wed Nov 21 20:37:46 2007
@@ -0,0 +1,26 @@
+WSDL2C.sh/bat
+=========
+
+This file is to simplify the C code generation using WSDL2C java tool. 
+
+How to use
+----------
+1. Set AXIS2_HOME environment variable to your 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: Same for the bat file as wel. 
+
+
+Examples
+--------
+
+To generate a server skeleton in C:
+	sh WSDL2C.sh -uri interoptestdoclitparameters.wsdl -ss -sd -d adb -u
+    or  WSDL2C.bat -uri interoptestdoclitparameters.wsdl -ss -sd -d adb -u
+
+To generate a client stub in C: 
+
+	sh WSDL2C.sh -uri interoptestdoclitparameters.wsdl -d adb -u 
+    or  WSDL2C.bat -uri interoptestdoclitparameters.wsdl -d adb -u 
+

Added: webservices/axis2/trunk/c/tools/codegen/javatool/WSDL2C.bat
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/javatool/WSDL2C.bat?rev=597296&view=auto
==============================================================================
--- webservices/axis2/trunk/c/tools/codegen/javatool/WSDL2C.bat (added)
+++ webservices/axis2/trunk/c/tools/codegen/javatool/WSDL2C.bat Wed Nov 21 20:37:46 2007
@@ -0,0 +1,8 @@
+REM set AXIS2_HOME = C:\axis2-1.1\axis2-1.2-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 %*
+
+

Added: webservices/axis2/trunk/c/tools/codegen/javatool/WSDL2C.sh
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/codegen/javatool/WSDL2C.sh?rev=597296&view=auto
==============================================================================
--- webservices/axis2/trunk/c/tools/codegen/javatool/WSDL2C.sh (added)
+++ webservices/axis2/trunk/c/tools/codegen/javatool/WSDL2C.sh Wed Nov 21 20:37:46 2007
@@ -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 $*



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org