You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by ro...@apache.org on 2025/11/22 01:25:16 UTC

(axis-axis2-c-core) branch master updated (0d3dffed8 -> cf8c7a1ba)

This is an automated email from the ASF dual-hosted git repository.

robertlazarski pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git


    from 0d3dffed8 Add CMake build configuration for native WSDL2C generator
     new bb14cf9af code cleanup
     new cf8c7a1ba code cleanup

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .gitignore           |  2 +-
 run_all_tests.sh     | 25 +++++++++-------
 tools/codegen/README | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 97 insertions(+), 11 deletions(-)
 create mode 100644 tools/codegen/README


(axis-axis2-c-core) 02/02: code cleanup

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit cf8c7a1ba2866a763f7d0e3409b44f7e0e7539c1
Author: Robert Lazarski <rl...@alphatheory.com>
AuthorDate: Fri Nov 21 15:23:50 2025 -1000

    code cleanup
---
 tools/codegen/README | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 81 insertions(+)

diff --git a/tools/codegen/README b/tools/codegen/README
new file mode 100644
index 000000000..22c7d5fdd
--- /dev/null
+++ b/tools/codegen/README
@@ -0,0 +1,81 @@
+Apache Axis2/C Code Generation
+=============================
+
+Apache Axis2/C 2.0.0 includes a native C WSDL2C generator that eliminates the Java dependency
+and provides faster, more reliable code generation for creating C stubs and skeletons from WSDL files.
+
+Native C Generator
+==================
+
+The native C generator is a standalone tool that provides all the functionality previously
+available through the Java-based tool, with improved performance and no external dependencies.
+
+Prerequisites
+-------------
+- libxml2-dev package installed
+- pkgconf package installed
+
+Building the Native Generator
+----------------------------
+From the Axis2/C source directory:
+
+	cd tools/codegen/native
+	mkdir build && cd build
+	cmake ..
+	make
+
+This creates the wsdl2c-native executable in the build directory.
+
+Using the Native Generator
+-------------------------
+The native generator supports comprehensive command-line options:
+
+	./wsdl2c-native -uri <WSDL_FILE> [options]
+
+Command Line Options:
+  -uri <path>          WSDL file path or URL (Required)
+  -o <path>            Output directory (Default: current directory)
+  -ss                  Generate server side code (skeletons)
+  -sd                  Generate service descriptor (services.xml)
+  -d <databinding>     Data binding: adb, none (Default: adb)
+  -u                   Unwrap parameters
+  -g                   Generate all classes (client and server)
+  -a                   Generate async code only
+  -s                   Generate sync code only (takes precedence over -a)
+  -t                   Generate test cases
+  -p <package>         Custom package name
+  -l <language>        Language (only "c" supported)
+  -h, --help           Show help
+  -v, --version        Show version
+
+Examples
+--------
+
+Generate a service skeleton in C:
+	./wsdl2c-native -uri interoptestdoclitparameters.wsdl -ss -sd -d adb -u
+
+Generate a client stub in C:
+	./wsdl2c-native -uri interoptestdoclitparameters.wsdl -d adb -u
+
+Generate with XML in/out model (no data binding):
+	./wsdl2c-native -uri interoptestdoclitparameters.wsdl -d none
+
+Migration from Java Tools
+=========================
+
+Previous versions of Axis2/C relied on Java-based WSDL2C tools. The native generator
+provides the same functionality with these advantages:
+
+- No Java runtime dependency
+- Faster code generation
+- Better error handling
+- Consistent with Axis2/C philosophy
+- Easier to maintain and debug
+
+Simply replace any previous Java-based WSDL2C commands with the native generator.
+
+Generated Code Compatibility
+============================
+
+The native generator produces code that is fully compatible with existing Axis2/C applications.
+Generated stubs and skeletons maintain the same API and behavior as the previous Java-based tools.
\ No newline at end of file


(axis-axis2-c-core) 01/02: code cleanup

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit bb14cf9af3c90deb837849e0471a329318ea70bd
Author: Robert Lazarski <rl...@alphatheory.com>
AuthorDate: Fri Nov 21 15:23:03 2025 -1000

    code cleanup
---
 .gitignore       |  2 +-
 run_all_tests.sh | 25 +++++++++++++++----------
 2 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/.gitignore b/.gitignore
index 5b61a2199..483b9106b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -70,7 +70,7 @@ clean
 *.bak
 *.swp
 *.tmp
-wtf.txt
+log.txt
 
 # IDE files
 .vscode/
diff --git a/run_all_tests.sh b/run_all_tests.sh
index e63b12138..6814a51cf 100644
--- a/run_all_tests.sh
+++ b/run_all_tests.sh
@@ -3,54 +3,59 @@
 echo "๐ŸŽฏ Testing Axis2/C Native WSDL2C Generator - Advanced Features"
 echo "============================================================="
 
-cd /home/robert/repos/axis-axis2-c-core/tools/codegen/native/test
+# Get the script directory and navigate to test directory
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+TEST_DIR="${SCRIPT_DIR}/tools/codegen/native/test"
+LOG_FILE="${SCRIPT_DIR}/log.txt"
+
+cd "${TEST_DIR}"
 
 echo "๐Ÿงน Cleaning previous build..."
 make clean
 
 echo "๐Ÿ”จ Building and running comprehensive tests..."
-make check > /home/robert/repos/axis-axis2-c-core/wtf.txt 2>&1
+make check > "${LOG_FILE}" 2>&1
 
 echo ""
 echo "๐Ÿ“Š RESULTS SUMMARY:"
 echo "=================="
 
-if grep -q "Pass Rate:" /home/robert/repos/axis-axis2-c-core/wtf.txt; then
+if grep -q "Pass Rate:" "${LOG_FILE}"; then
     echo "โœ… Tests completed successfully!"
     echo ""
 
     # Show overall results
     echo "๐Ÿ“ˆ Overall Results:"
-    grep -A 10 "Pass Rate:" /home/robert/repos/axis-axis2-c-core/wtf.txt | tail -6
+    grep -A 10 "Pass Rate:" "${LOG_FILE}" | tail -6
     echo ""
 
     # Show individual test suite results
     echo "๐Ÿ“‹ Test Suite Breakdown:"
-    grep -B 1 -A 4 "Pass Rate:" /home/robert/repos/axis-axis2-c-core/wtf.txt | head -25
+    grep -B 1 -A 4 "Pass Rate:" "${LOG_FILE}" | head -25
 
     echo ""
     echo "๐ŸŽ‰ Advanced Features Status:"
-    if grep -q "test_complex_choice.*PASSED" /home/robert/repos/axis-axis2-c-core/wtf.txt; then
+    if grep -q "test_complex_choice.*PASSED" "${LOG_FILE}"; then
         echo "  โœ… Complex Choice Elements: WORKING"
     else
         echo "  โŒ Complex Choice Elements: NEEDS WORK"
     fi
 
-    if grep -q "test_nested_arrays.*PASSED" /home/robert/repos/axis-axis2-c-core/wtf.txt; then
+    if grep -q "test_nested_arrays.*PASSED" "${LOG_FILE}"; then
         echo "  โœ… Nested Arrays: WORKING"
     else
         echo "  โŒ Nested Arrays: NEEDS WORK"
     fi
 
-    if grep -q "test_numeric_enumeration.*PASSED" /home/robert/repos/axis-axis2-c-core/wtf.txt; then
+    if grep -q "test_numeric_enumeration.*PASSED" "${LOG_FILE}"; then
         echo "  โœ… Numeric Enumerations: WORKING"
     else
         echo "  โŒ Numeric Enumerations: NEEDS WORK"
     fi
 
 else
-    echo "โŒ Tests failed to complete. Check wtf.txt for errors."
+    echo "โŒ Tests failed to complete. Check log.txt for errors."
 fi
 
 echo ""
-echo "๐Ÿ“„ Full details: /home/robert/repos/axis-axis2-c-core/wtf.txt"
\ No newline at end of file
+echo "๐Ÿ“„ Full details: ${LOG_FILE}"
\ No newline at end of file