You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by du...@apache.org on 2006/12/06 10:31:26 UTC

svn commit: r482986 - in /webservices/axis2/trunk/c/tools/bin: ./ README.txt WSDL2C.sh

Author: dushshantha
Date: Wed Dec  6 01:31:24 2006
New Revision: 482986

URL: http://svn.apache.org/viewvc?view=rev&rev=482986
Log:
Added a shell script to generate C code using WSDL2C java tool.

Added:
    webservices/axis2/trunk/c/tools/bin/
    webservices/axis2/trunk/c/tools/bin/README.txt
    webservices/axis2/trunk/c/tools/bin/WSDL2C.sh

Added: webservices/axis2/trunk/c/tools/bin/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/bin/README.txt?view=auto&rev=482986
==============================================================================
--- webservices/axis2/trunk/c/tools/bin/README.txt (added)
+++ webservices/axis2/trunk/c/tools/bin/README.txt Wed Dec  6 01:31:24 2006
@@ -0,0 +1,23 @@
+WSDL2C.sh
+=========
+
+This file is to simplify the C code generation using WSDL2C java tool. 
+
+How to use
+----------
+1. Open WSDL2C.sh
+2. Set your axis2_java home directory in the line 'export AXIS2_HOME=/home/axis2java' and save it.
+3. run WSDL2C.sh giving WSDL2C command line arguments as the arguments to the shell script.
+
+
+Examples
+--------
+
+To generate a server skeleton in C:
+	sh WSDL2C.sh -uri interoptestdoclitparameters.wsdl -ss -sd -d adb -u
+
+To generate a client stub in C: 
+
+	sh WSDL2C.sh -l c -uri interoptestdoclitparameters.wsdl -d adb -u 
+
+

Added: webservices/axis2/trunk/c/tools/bin/WSDL2C.sh
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/tools/bin/WSDL2C.sh?view=auto&rev=482986
==============================================================================
--- webservices/axis2/trunk/c/tools/bin/WSDL2C.sh (added)
+++ webservices/axis2/trunk/c/tools/bin/WSDL2C.sh Wed Dec  6 01:31:24 2006
@@ -0,0 +1,12 @@
+#!/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